Initial commit for build of dwmblocks
This commit is contained in:
commit
e60906dbc6
14 changed files with 416 additions and 0 deletions
14
scripts/bar_volume.sh
Executable file
14
scripts/bar_volume.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/bash
|
||||
[ $(pamixer --get-mute) = true ] && echo 婢 && exit
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon=""
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon=""
|
||||
else
|
||||
icon=""
|
||||
fi
|
||||
|
||||
echo "$icon $vol%"
|
Loading…
Add table
Add a link
Reference in a new issue