堆叠多个 libnotify 弹出窗口

发布于 2024-09-11 01:27:49 字数 953 浏览 8 评论 0原文

有谁知道我如何让通过通知发送发送的多个弹出窗口同时出现在屏幕上。

其中:

$ notify-send 'Message One' 'Body One' & notify-send 'Message Two' 'Body Two' & notify-send 'Message Three' 'Body Three'

每个弹出窗口都会等待队列中的前一个弹出窗口到期后再显示,我试图让所有三个弹出窗口尽快在屏幕上层叠。

男人说:

OPTIONS
       -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).

       -t, --expire-time=TIME
              Specifies the timeout in milliseconds at which to expire the notification.

       -i, --icon=ICON[,ICON...]
              Specifies an icon filename or stock icon to display.

       -c, --category=TYPE[,TYPE...]
              Specifies the notification category.

          Help options:

       -?, --help
              Show this help message

       -h, --hint=TYPE:NAME:VALUE
              Specifies basic extra data to pass. Valid types are int, double, string and byte.

将紧急程度设置为严重并没有什么区别。

TIA

Does anybody know how i can get multiple popups sent via notify-send to appear on screen at once.

With:

$ notify-send 'Message One' 'Body One' & notify-send 'Message Two' 'Body Two' & notify-send 'Message Three' 'Body Three'

Each one waits for the previous popup in the queue to expire before being shown, i'm trying to get all three to cascade down the screen asap.

Man says:

OPTIONS
       -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).

       -t, --expire-time=TIME
              Specifies the timeout in milliseconds at which to expire the notification.

       -i, --icon=ICON[,ICON...]
              Specifies an icon filename or stock icon to display.

       -c, --category=TYPE[,TYPE...]
              Specifies the notification category.

          Help options:

       -?, --help
              Show this help message

       -h, --hint=TYPE:NAME:VALUE
              Specifies basic extra data to pass. Valid types are int, double, string and byte.

Setting the urgency to critical makes no difference.

TIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

被你宠の有点坏 2024-09-18 01:28:11

我相信您正在运行的通知守护程序有责任确定行为应该是什么。例如,在 xfce4-notifyd 中,所有三个通知都会同时显示,并且彼此重叠(因为它不支持堆叠)。

由于您运行的是 Ubuntu 9.04,您的通知守护进程很可能是 notifyOSD。尝试查看其文档。

I believe it's the responsibility of the notification-daemon you are running as to what the behaviour should be. For example, in xfce4-notifyd, all three notifications are displayed at once, overlapping each other (since it doesn't support stacking).

Since your running Ubuntu 9.04, your notification-daemon is most likely notifyOSD. Try taking a look through its documentation.

晨与橙与城 2024-09-18 01:28:02

我知道这是一个老问题,但我在谷歌搜索相关内容时遇到了它,所以我无论如何都会发布一个答案。

就像tlvince所说,这是你的通知守护进程的错误,你可能正在运行Canonical的notify-osd。将其替换为 Gnome 的通知守护进程,您将获得您想要的行为。

这些页面可能会有所帮助:

http://www. webupd8.org/2011/05/how-to-use-standard-gnome-notification.html

http://ubuntuforums.org/showthread.php?t=1663840

I know it's an old question, but I ran into it while searching for related stuff in Google, so I will post an answer anyways.

Like tlvince said, it's your notification daemon's fault and you're probably running Canonical's notify-osd. Replace it with Gnome's notification-daemon and you will get the behavior your want.

These pages might help:

http://www.webupd8.org/2011/05/how-to-use-standard-gnome-notification.html

http://ubuntuforums.org/showthread.php?t=1663840

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文