From: Martin Mares Date: Sun, 18 Jul 2010 11:32:38 +0000 (+0200) Subject: osd-mpc-volume: Fixed the parsing regex, volume=100% did not work :) X-Git-Tag: v1.1~5^2~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c35777a78cc041672856c74cdaa478bc119c8c69;p=osdd.git osd-mpc-volume: Fixed the parsing regex, volume=100% did not work :) --- diff --git a/osd-mpc-volume b/osd-mpc-volume index 76dce7b..5c702fa 100755 --- a/osd-mpc-volume +++ b/osd-mpc-volume @@ -3,4 +3,4 @@ if [ -z "$1" -o -n "$2" ] ; then echo >&2 "Usage: $0 [+|-]" exit 1 fi -mpc volume $1 | sed 's/.*volume: \([0-9]\+\)%.*/\1/;t;d' | osdc 'MPC Volume' '' --percent=- +mpc volume $1 | sed 's/.*volume: *\([0-9]\+\)%.*/\1/;t;d' | osdc 'MPC Volume' '' --percent=-