MpdStatus: wmii-mpd-status.patch

File wmii-mpd-status.patch, 497 bytes (added by simon, 18 years ago)

Example patch to wmii status.sh

  • wmii/status.sh

    old new trap "remove_own_pidfile; exit" TERM 
    2929
    3030while true; do
    3131    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'`"
    3333        $WRITE /bar/default/70_status/label/text "$text" 2>/dev/null
    3434        sleep $DELAY
    3535    else