dotfiles/eww/scripts/adjust-volume.sh

12 lines
178 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