0

I am new to wmii. Could anybody kind enough to share his configuration script with a nice status bar that could display notifications from Pidgin?

SunLiWei
  • 1,313
  • 4
  • 11
  • 30

1 Answers1

1

OK, I got the notification work for Pidgin. First, 'command-notification' plugin from Pidgin site, download

Then configure the plugin execute a shell script, like this:

#!/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
SunLiWei
  • 1,313
  • 4
  • 11
  • 30