Initial commit
This commit is contained in:
14
scripts/dwmblocks-volume
Executable file
14
scripts/dwmblocks-volume
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
let volume="$(pamixer --get-volume)"
|
||||
local icon
|
||||
if [[ "$(pamixer --get-mute)" = "true" ]]; then
|
||||
icon='ﱝ'
|
||||
elif ((${volume} > 50)); then
|
||||
icon='墳'
|
||||
elif ((${volume} > 0)); then
|
||||
icon='奔'
|
||||
else
|
||||
icon='奄'
|
||||
fi
|
||||
printf '%s%3d%%\n' "${icon}" "${volume}"
|
Reference in New Issue
Block a user