Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mute=`amixer get Master | grep "Front Left:" | awk '{print $7}'`
- if [ $mute == "[on]" ]
- then
- vol=`amixer get Master | grep "Front Left:" | awk '{print $5}' | tr -d '[]'`
- if [ $vol == "0%" ]
- then
- echo "Mute"
- else
- echo $vol
- fi
- else
- echo "Mute"
- fi
Add Comment
Please, Sign In to add comment