dotfiles/de/home/.config/eww/scripts/bar/volume-status
2025-03-05 21:00:06 -08:00

8 lines
172 B
Bash
Executable file

#!/bin/sh
if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then
echo 0
exit
else
echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g')"
fi