Kde Plasma 给wine QQ 微信 添加新消息提醒
Tofloor
poster avatar
186******70
deepin
2020-11-17 04:30
Author

Kde Plasma 环境 wine QQ 微信 等来消息之后托盘图标不会闪动,容易错过重要的事情!!!

想了个办法解决这个问题, dbus-monitor 监听托盘新图标的信号,然后用 notify-send 发提醒通知

脚本很简单,可以根据需要自行修改,甚至可以安装 ffmpeg 之后播放准备好的音频文件.

具体可以修改 msgq 这个脚本的内容自行添加修改功能

安装 dbus 和 libnotify

因为需要使用 dbus-monitor 和 notify-send

arch:

pacman -S dbus libnotify

debian:

apt install dbus libnotify-bin

添加到自动启动脚本

git clone https://gitee.com/yar999/msgq ~/.msgq
cd ~/.msgq
ln -sf ~/.msgq/msgq ~/.config/autostart-scrīpts/
Reply Favorite View the author
All Replies
心平气和
deepin
2020-11-17 05:19
#1

notify-send  我用这个东西,提示虚拟机 软件消息也挺好用的 

Reply View the author
犬次郎大王
deepin
2023-06-30 19:54
#2

虚心求教一下,这个消息提示的太多了,很多不是微信消息也出现提示,干扰性太大了,有没有什么其他好办法?

Reply View the author
186******70
deepin
2023-07-03 23:43
#3

这个脚本只是监听状态栏新图标的事件,是会误提醒,没有其他好办法.

Reply View the author