pinosaur
/
dotfiles.git
/ blob
4bb4ab93da53bf161bc994178ebea31b1d313904
[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