]> mj.ucw.cz Git - osdd.git/blob - osd-mpc-volume
Do not forget XFlush()
[osdd.git] / osd-mpc-volume
1 #!/bin/sh
2 if [ -z "$1" -o -n "$2" ] ; then
3         echo >&2 "Usage: $0 [+|-]<percentage>"
4         exit 1
5 fi
6 mpc volume $1 | sed 's/.*volume: *\([0-9]\+\)%.*/\1/;t;d' | osdc 'MPC Volume' '' --percent=-