config/files/sketchybar/plugins/executable_volume_click.sh
2025-05-03 21:41:46 -07:00

9 lines
215 B
Bash

#!/usr/bin/env sh
MUTED=$(osascript -e 'output muted of (get volume settings)')
if [ "$MUTED" = "false" ]; then
osascript -e 'set volume output muted true'
else
osascript -e 'set volume output muted false'
fi