nixos/config/xmobar/scripts/pulsevol.sh
2023-07-25 16:04:16 +03:00

10 lines
134 B
Bash
Executable file

#!/bin/sh
vol=$(pamixer --get-volume)
mute=$(pamixer --get-mute)
if [ $mute = 'true' ]; then
echo MUTED
else
echo Vol: $vol%
fi