dotfiles/eww/scripts/adjust-volume.sh

9 lines
168 B
Bash
Executable file

#!/bin/env sh
DELTA="1%"
case "$1" in
up) pactl set-sink-volume @DEFAULT_SINK@ +"$DELTA";;
down) pactl set-sink-volume @DEFAULT_SINK@ -"$DELTA";;
*) exit 1;;
esac