New backup 2024-06-17 11:00:02

This commit is contained in:
Penelope Gwen 2024-06-17 11:00:02 -06:00
parent 64e964d6fd
commit 78136e180b

View file

@ -13,11 +13,14 @@ case "$operation" in
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
;;&
mute)
if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ];then
echo "0"
else
pactl set-sink-mute @DEFAULT_SINK@ toggle
;;&
up|down|mute)
vol_lvl="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g')"
if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ];then
vol_lvl="0"
else
vol_lvl="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g')"
fi
echo "${vol_lvl}" "${de_color_0}${opacity}" "${de_color_1}${opacity}" "${de_color_2}${opacity}" > "$WOBSOCK"
paplay "$HOME/.config/sway/assets/sounds/volume.ogg"
;;