dotfiles/home/.bin/vol
2024-10-11 21:25:46 +02:00

10 lines
540 B
Bash
Executable file

#!/usr/bin/env zsh
if [ "$1" = "--up" ]; then
# eww -c $HOME/.dotfiles/eww/bar o vol && wpctl set-volume u/DEFAULT_AUDIO_SINK@ 5%+ && sleep 3 && eww -c $HOME/.dotfiles/eww/bar c vol
swayosd-client --output-volume raise
# wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
elif [ "$1" = "--down" ]; then
# eww -c $HOME/.dotfiles/eww/bar o vol && wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && sleep 3 && eww -c $HOME/.dotfiles/eww/bar c vol
swayosd-client --output-volume lower
# wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
fi