nixos/config/xmobar/scripts/pulsevol.sh

11 lines
134 B
Bash
Raw Normal View History

2023-07-25 17:04:16 +04:00
#!/bin/sh
vol=$(pamixer --get-volume)
mute=$(pamixer --get-mute)
if [ $mute = 'true' ]; then
echo MUTED
else
echo Vol: $vol%
fi