mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 11:54:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
18
.config/sketchybar/plugins/mic/mic_click.sh.old
Executable file
18
.config/sketchybar/plugins/mic/mic_click.sh.old
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$CONFIG_DIR/colors.sh"
|
||||
|
||||
MIC_VOLUME=$(osascript -e 'input volume of (get volume settings)')
|
||||
|
||||
if [[ $MIC_VOLUME -eq 0 ]]; then
|
||||
osascript -e 'set volume input volume 25'
|
||||
ICON=""
|
||||
COLOR=$GREEN
|
||||
#sketchybar -m --set mic icon="" icon.color=$GREEN
|
||||
elif [[ $MIC_VOLUME -gt 0 ]]; then
|
||||
osascript -e 'set volume input volume 0'
|
||||
ICON=""
|
||||
COLOR=$RED
|
||||
#sketchybar -m --set mic icon="" icon.color=$RED
|
||||
fi
|
||||
sketchybar -m --set mic icon="$ICON" icon.color=$COLOR
|
||||
Loading…
Reference in a new issue