diff --git a/Utils/octopus.sh b/Utils/octopus.sh index da4e58f..1bc4176 100755 --- a/Utils/octopus.sh +++ b/Utils/octopus.sh @@ -103,12 +103,18 @@ case $1 in ## VOLUME=`amixer get Master | grep '\[' | cut -d' ' -f6` SONG=`mpc | head -n 1 | cut -d. -f1` + if [ -n `mpc | grep paused` ]; then + STAT=">" + else + STAT="||" + fi; + MEMFREE=`awk '/MemFree/ {printf( "%.0f", $2 / 1024 )}' /proc/meminfo` MEMCACHED=`awk '/Cached/ {printf( "%.0f", $2 / 10240 )}' /proc/meminfo` MEMFT=`echo "$MEMFREE + $MEMCACHED" | bc` BEAT_TIME=`beat -v` - xsetroot -name "Vol $VOLUME :: [$SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true + xsetroot -name "Vol $VOLUME :: [$STAT $SONG] :: $MEMFT Mb Free :: Bat $BATT_PCT $BATT_TIME :: $DATE (@$BEAT_TIME)" || true $0 conf-ifaces ;;