# msgq **Repository Path**: yar999/msgq ## Basic Information - **Project Name**: msgq - **Description**: kde 环境 qq wechat 等 wine程序托盘图标变话之后(通常是来新消息)调用 notify-send 发提醒通知 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2020-11-12 - **Last Updated**: 2023-07-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 介绍 Kde Plasma 环境 wine QQ 微信 等来消息之后托盘图标不会闪动,容易错过重要的事情!!! 想了个办法解决这个问题, dbus-monitor 监听托盘新图标的信号,然后用 notify-send 发提醒通知 脚本很简单,可以根据需要自行修改,甚至可以安装 ffmpeg 之后播放准备好的音频文件. 具体可以修改 msgq 这个脚本的内容自行添加修改功能.脚本很简单,可以根据需要自行修改.. **msgq 这个脚本监听所有的托盘图标的NewIcon信号, 然后作出你需要的响应. 可能会有其他托盘图标变了也会触发消息提醒.** 但总比错过重要的事情要好. 如果大家有更好的办法请告知我下,谢谢! ## 安装 dbus 和 libnotify 因为需要使用 dbus-monitor 和 notify-send arch: ```sh pacman -S dbus libnotify ``` debian: ```sh apt install dbus libnotify-bin ``` ## 添加到自动启动脚本 ```sh git clone https://gitee.com/yar999/msgq ~/.msgq ln -sf ~/.msgq/msgq ~/.config/autostart-scripts/ ```