]> mj.ucw.cz Git - osdd.git/commitdiff
osd-mpc-volume: Fixed the parsing regex, volume=100% did not work :)
authorMartin Mares <mj@ucw.cz>
Sun, 18 Jul 2010 11:32:38 +0000 (13:32 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Jul 2010 11:32:38 +0000 (13:32 +0200)
osd-mpc-volume

index 76dce7b1df4a3fec40c26c6d8117d782be65c442..5c702fa06ad46f2927533c52e0e3ceb60092697b 100755 (executable)
@@ -3,4 +3,4 @@ if [ -z "$1" -o -n "$2" ] ; then
        echo >&2 "Usage: $0 [+|-]<percentage>"
        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=-