如何自定义/禁用通知气泡?
有没有办法可以在Lucid上禁用或自定义通知气泡?
是的,您可以使用名为Notify OSD Configuration的工具。
如果要禁用它们,请重命名该文件
/usr/share/dbus-1/services/org.freedesktop.Notifications.service
:
sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service{,.disabled}
要重新启用:
sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service{.disabled,}
您需要在其中一个更改生效后重新启动计算机才能生效。
要更改这些设置,请从软件中心安装gconf-editor
。
滚动到/ ▸ apps ▸ nm-applet
并检查disable-connected-notifications
和disable-disconnected-notifications
设置。 检查附图以获得说明。
对于VLC,您需要访问VLC首选项(按Ctrl + P,或从工具菜单访问它)
并在最小化时禁用SysTray弹出窗口 (将鼠标移到该选项上并读取描述符)
你也可以关闭特定的通知。要关闭pidgin通知,打开pidgin – >工具—>插件
取消选中libnotify弹出窗口 ..
要关闭notify-osd通知 ,请在终端中键入以下内容并重新启动系统。
sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service.disabled
要禁用rythmbox歌曲弹出通知 :
去:
编辑 – >插件
并取消选中Status Icon插件。
其他方式:
编辑 – >插件
选择状态图标,单击配置按钮
选择从未显示的通知选项。
您可以停止歌曲更改弹出通知表格
- 打开Rhythmbox在菜单中看到:编辑 – > Plagins(打开它)
- 取消选中通知插件
这个问题
如何在12.04关闭弹出通知?
被重定向到这里,但这个问题的上下文是为清晰10.04设置的,它使用notification-daemon
而不是Pangolin 12.04,它使用notify-osd
(屏幕显示)来制作弹出气泡。
这可以在12.04系统文件中看到(NB 10.04在此之前):
view-source:file:///usr/share/dbus-1/services/org.freedesktop.Notifications.service
notifying
内容唯一特定于Unity
或Gnome
默认界面:
[D-BUS服务] NAME = org.freedesktop.Notifications Exec = / bin / sh -c'如果 [! -x / usr / lib / notification-daemon / notification-daemon] || [“$ GDMSESSION”=来宾限制] || [“$ GDMSESSION”= gnome-classic-guest-restricted] [“$ GDMSESSION”=默认-a “$(basename`readlink / etc / alternatives / x-session-manager`)”= gnome-session] || [“$ GDMSESSION”= ubuntu] || [“$ GDMSESSION”= ubuntu-2d]; 然后是exec / usr / lib / notify-osd / notify-osd ; else exec / usr / lib / notification-daemon / notification-daemon ; 科幻”
以下内容明确针对12.04重定向问题。
可以使用终端窗口禁用和清除完整的待处理通知堆栈
( Ctrl + Alt + T )然后输入
killall notify-osd
之后通知恢复。
要禁用任意长度的时间,请使用:
dbus-monitor "interface='org.freedesktop.Notifications'" | \ grep --line-buffered "member=Notify" | \ sed -u -e 's/.*/killall notify-osd/g' | \ bash
可以通过关闭终端窗口或键入Ctrl + C来停止此原始解决方案。
更改"member=Notify"
以自定义所需的通知选择以进行清除。
有关更多控制,请参阅
可以通过DBus触发和调用org.freedesktop.Notifications.CloseNotification(uint id)吗?
参考文献中记载了其他技术。
编号:
- 如何禁用网络管理员的通知
- 是否可以阻止NotifyOSD用于一个应用程序?
- 过滤消息到“通知区域”小程序
- 如何自定义/禁用通知气泡?
要禁用通知气泡,您可以从面板中删除“通知区域”项。 只需右键单击通知区域项,然后选择“从面板中删除”。
更新:通知区域将不再来自Ubuntu 11.04
转到包管理器并删除弹出通知;; 它将自动安装系统需要的另一个.BUT在新歌开启时不会显示弹出窗口。 这样做是为了开采薄荷16伙伴。
此脚本切换notify-osd通知:(受https://askubuntu.com/a/35840/17940启发)
$ cat toggle-notify.sh # Disable libnotify notification bubbles that appear in the top-right corner # of your screen. Works on Ubuntu 12.04. disabled=$HOME/notify-osd-disabled if [ -e $disabled ] then echo "Enabled notify-osd" sudo chmod +x /usr/lib/notify-osd/notify-osd rm -f $disabled else echo "Disabled notify-osd" sudo chmod -x /usr/lib/notify-osd/notify-osd killall notify-osd 2>/dev/null touch $disabled fi
它适用于:
- Ubuntu 12.04
- Ubuntu 14.04
使其可执行并运行它:
$ chmod +x toggle-notify.sh $ ./toggle-notify.sh Disabled notify-osd
键盘快捷键
您可以将键盘快捷键绑定到此脚本:
$ mkdir ~/bin $ mv toggle-notify.sh ~/bin $ export PATH="$HOME/bin:$PATH"
我已经尝试了这里列出的所有方法,但没有一个在Fedora 18中工作。最终我发现了一些有用的东西(从http://www.superuser.com/questions/543064/how-to-disable-all-复制粘贴gnome-3-notifications ):
我有几个系统,我不希望更新或其他消息。 我宁愿只检查日志。
除非您想进入每个程序(即网络设置»禁用通知),但仍然可以获得系统消息,您可以:
su - chmod 000 /usr/libexec/notification-daemon reboot
这应该适用于大多数GNOME3系统以杀死所有消息。
希望它可以节省一些时间的搜索。