关于shell命令的桌面通知已完成

时间:2012-04-11 13:15:36

标签: linux shell

是否可以启用有关shell进程的桌面通知?只有当我在不同的桌面和进程上花费超过x秒时,我才会很高兴收到通知。 更确切地说:

我想为我在终端中运行的每个进程执行此操作,例如运行规范,编译,部署。我用gnome。

1 个答案:

答案 0 :(得分:6)

似乎有several tools,哪个最好取决于您使用的桌面环境和通知守护程序。甚至还有一个库(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!"