我是wmii的新手。任何人都可以用一个漂亮的状态栏分享他的配置脚本,可以显示来自洋泾浜的通知吗?
好的,我得到了洋泾浜的通知工作。首先,来自洋泾浜网站的"命令通知"插件,下载
然后配置插件执行一个 shell 脚本,如下所示:
#!/bin/bash
owins=$(wmiir ls /client | grep -v -e 'sel')
for owin in $owins; do
wincount=$(wmiir read /client/$owin/props | grep -c -e "Pidgin:Pidgin")
if [ $wincount != 0 ]; then
wmiir xwrite /client/$owin/ctl Urgent off
wmiir xwrite /client/$owin/ctl Urgent on
wmiir xwrite /event Notice "You have new message!"
fi
done