pinosaur
/
dotfiles.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
init
[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