Files
dotfiles/home/.config/eww/widgets/audio/change-volume.sh
T
2024-07-06 12:59:14 +03:00

10 lines
214 B
Bash

#!/usr/bin/env sh
if [[ $1 == "up" ]]; then
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
elif [[ $1 == "down" ]]; then
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
else
wpctl set-volume @DEFAULT_AUDIO_SINK@ $1
fi