【问题标题】:wmii configuration script for Pidgin notificationPidgin 通知的 wmii 配置脚本
【发布时间】:2011-05-09 10:02:52
【问题描述】:

我是wmii 的新手。任何人都可以将他的配置脚本与一个可以显示来自 Pidgin 的通知的漂亮状态栏分享吗?

【问题讨论】:

    标签: pidgin


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-03
      • 2012-06-04
      • 2012-09-16
      • 2013-09-23
      相关资源
      最近更新 更多