diff options
Diffstat (limited to 'mac/.config/sketchybar.mon/plugins/mic.sh')
| -rwxr-xr-x | mac/.config/sketchybar.mon/plugins/mic.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/plugins/mic.sh b/mac/.config/sketchybar.mon/plugins/mic.sh new file mode 100755 index 0000000..35cde89 --- /dev/null +++ b/mac/.config/sketchybar.mon/plugins/mic.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +MIC_VOLUME=$(osascript -e 'input volume of (get volume settings)') + +if [[ $MIC_VOLUME -eq 0 ]]; then + sketchybar -m --set mic icon= +elif [[ $MIC_VOLUME -gt 0 ]]; then + sketchybar -m --set mic icon= +fi |
