Files
dotfiles/home/config/eww/lib/change-volume.sh
T
2025-01-22 19:33:28 +02:00

10 lines
214 B
Bash
Executable File

#!/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