Guest User

Untitled

a guest
May 22nd, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #
  2. # Location: ~/.xmonad/volume-bar.sh
  3. #
  4. mixer=`amixer`
  5.  
  6. if [ `echo $mixer |grep -m 1 "%\]" |grep -c "\[off\]"` -eq 1 ];
  7. then
  8. echo "Vol: mute"
  9. else
  10. volume=`echo $mixer |grep -m 1 "%]" |cut -d "[" -f2 |cut -d "%" -f1`
  11. echo "Vol: $volume%"
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment