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

Sła*_*osz 4 linux shell

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

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

Spl*_*iFF 6

似乎有几种工具,哪种最好取决于您使用的桌面环境和通知守护程序.甚至还有一个库(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!"
Run Code Online (Sandbox Code Playgroud)