是否可以启用关于Shell进程完成的桌面通知?如果我在不同的桌面上,并且进程需要超过x秒,则只有在这种情况下才会收到通知。
更确切地说:
我想为我在终端中运行的每个进程都这样做,比如运行规格、编译、部署。我使用Gnome。
看起来有几种工具可以使用,最好的选择取决于您所使用的桌面环境和通知守护程序。甚至有一个库(libnotify)可以用来编写自己的工具。简而言之,是可以实现的。
notify-send "This message will be displayed for 3 seconds" -t 3000
gmessage -center -nofocus -font 'Sans Bold 48' "Laundry Done"
zenity --warning --text="Laundry Done!"
kdialog --passivepopup "Laundry Done!"