Pidgin通知的wmii配置脚本

时间:2011-05-09 10:02:52

标签: pidgin

我是wmii的新手。有没有人能够与一个可以显示来自Pidgin的通知的好状态栏共享他的配置脚本?

1 个答案:

答案 0 :(得分:1)

好的,我收到了Pidgin的通知工作。 首先,来自Pidgin网站的“命令通知”插件download

然后配置插件执行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