通知 – 发送不工作,似乎很多错误

我正在尝试创建通知脚本,但它不起作用。
当我点击例如“控制+ alt + m”时,它应该弹出通知它,但它像默认,我不能改变任何东西。
我尝试使用一些命令进行notify-send,但它只是不起作用。
而另一个巨大的问题是它不能在全屏幕上工作,就像我在游戏中,我想点击“控制+ alt + m”并且它没有显示出来。
我什么都做不了,我试着写 – 关键仍然没有用。 需要帮助通知。

这是我的脚本:

#!/bin/bash notify-send "Dota2 Heroes" -t 10000 

PS默认值为5秒时间,-t 10000 = 10秒但不起作用,通知在5秒内消失

答案很简单:

Ubuntu的Notify OSD和GNOME Shell都忽略了这个参数。

打开手册页

 man notify-send 

你可以读到这个:

 -t, --expire-time=TIME The duration, in milliseconds, for the notification to appear on screen. (Ubuntu's Notify OSD and GNOME Shell both ignore this parameter.)