herbstluftwm: panel: change volume bar style
This commit is contained in:
parent
3d35ce3108
commit
f3a88d4b06
1 changed files with 2 additions and 2 deletions
|
|
@ -111,9 +111,9 @@ function battery() {
|
||||||
function volume() {
|
function volume() {
|
||||||
vol=$(amixer get Master | grep "%" | head -n1 | awk -F"[][]" '{if($6~"off"){print "0%";} else {print $2;}}' | tr -d '%')
|
vol=$(amixer get Master | grep "%" | head -n1 | awk -F"[][]" '{if($6~"off"){print "0%";} else {print $2;}}' | tr -d '%')
|
||||||
if [[ $vol -le 0 ]]; then
|
if [[ $vol -le 0 ]]; then
|
||||||
echo -n $(icon volume_off grey) $(echo $vol | dzen2-gdbar -nonl)
|
echo -n $(icon volume_off grey) $(echo $vol | dzen2-gdbar -s o -nonl)
|
||||||
else
|
else
|
||||||
echo -n $(icon volume_on white) $(echo $vol | dzen2-gdbar -nonl)
|
echo -n $(icon volume_on white) $(echo $vol | dzen2-gdbar -s o -nonl)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue