config/files/sketchybar/plugins/executable_volume_click.sh

10 lines
215 B
Bash
Raw Normal View History

2025-05-03 21:41:46 -07:00
#!/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