mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
17
.config/sketchybar/plugins/volume_scroll.sh
Executable file
17
.config/sketchybar/plugins/volume_scroll.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
||||
Loading…
Reference in a new issue