neodotfiles/user/.config/suckless/dwmblocks/scripts/block_volume

6 lines
171 B
Text
Raw Normal View History

2022-12-20 00:15:21 +00:00
#!/bin/bash
# Prints the current volume or 🔇 if muted.
[ $(pamixer --get-mute) = true ] && echo " VL: [MUT] " && exit
vol="$(pamixer --get-volume)"
echo " vol: $vol% "