MpdStatus: wmii-mpd-status.patch
File wmii-mpd-status.patch, 497 bytes (added by simon, 19 years ago) |
---|
-
wmii/status.sh
old new trap "remove_own_pidfile; exit" TERM 29 29 30 30 while true; do 31 31 if $READ /bar >/dev/null 2>&1; then 32 text="` date` `uptime | sed -e 's/.*://' -e 's/,//g'`"32 text="`python2.4 $HOME/.wmii/scripts/mpc.py` `date` `uptime | sed -e 's/.*://' -e 's/,//g'`" 33 33 $WRITE /bar/default/70_status/label/text "$text" 2>/dev/null 34 34 sleep $DELAY 35 35 else