Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Location: ~/.xmonad/volume-bar.sh
- #
- mixer=`amixer`
- if [ `echo $mixer |grep -m 1 "%\]" |grep -c "\[off\]"` -eq 1 ];
- then
- echo "Vol: mute"
- else
- volume=`echo $mixer |grep -m 1 "%]" |cut -d "[" -f2 |cut -d "%" -f1`
- echo "Vol: $volume%"
- fi
Advertisement
Add Comment
Please, Sign In to add comment