dotfiles/.config/sketchybar/plugins/volume_scroll.sh
2026-06-03 14:36:50 -04:00

17 lines
No EOL
420 B
Shell
Executable file

#!/bin/bash
# Volume scroll script - allows changing volume with mouse scroll
VOLUME_STEP=5
case "$SCROLL_DIRECTION" in
"up")
osascript -e "set volume output volume (output volume of (get volume settings) + $VOLUME_STEP)"
;;
"down")
osascript -e "set volume output volume (output volume of (get volume settings) - $VOLUME_STEP)"
;;
esac
# Trigger volume update
sketchybar --trigger volume_change