Skip to content

Commit

Permalink
Volume script refactored with awk and improved
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix committed Feb 2, 2014
1 parent 6439297 commit 4fdbe07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/volume
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

MUSIC=♪

VOLUME=`amixer get Master | grep 'dB' | cut -d ' ' -f 6`
VOLUME=`amixer get Master | awk '/Mono:/{gsub(/\[|\]/, "", $4); print $4}'`
echo "$MUSIC $VOLUME"

0 comments on commit 4fdbe07

Please sign in to comment.