Skip to content
Snippets Groups Projects
Commit c35777a7 authored by Martin Mareš's avatar Martin Mareš
Browse files

osd-mpc-volume: Fixed the parsing regex, volume=100% did not work :)

parent 52ac79b1
No related branches found
No related tags found
No related merge requests found
...@@ -3,4 +3,4 @@ if [ -z "$1" -o -n "$2" ] ; then ...@@ -3,4 +3,4 @@ if [ -z "$1" -o -n "$2" ] ; then
echo >&2 "Usage: $0 [+|-]<percentage>" echo >&2 "Usage: $0 [+|-]<percentage>"
exit 1 exit 1
fi 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=-
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment