11 lines
540 B
Text
11 lines
540 B
Text
|
#!/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
|