pinosaur
/
dotfiles.git
/ blob
846d638380dc84ea4ac98d5049bf43c7cf70eb70
[dotfiles.git]
/
Scripts
/
statusbar
/
blocks_vol
1
#!/bin/sh
2
3
volume="$(amixer sget Master | grep 'Mono:' | awk -F'[][]' '{ print $2 }')"
4
5
icon=""
6
[ ${volume%\%} -gt "0" ] && icon=""
7
[ ${volume%\%} -gt "50" ] && icon=""
8
[ ${volume%\%} -gt "75" ] && icon=""
9
echo -e "$icon $volume"
10