mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
16 lines
534 B
Shell
Executable file
16 lines
534 B
Shell
Executable file
#!/bin/bash
|
|
|
|
source "$CONFIG_DIR/colors.sh"
|
|
|
|
MIC_VOLUME=$(osascript -e 'input volume of (get volume settings)')
|
|
|
|
if [[ $MIC_VOLUME -eq 0 ]]; then
|
|
ICON=" "
|
|
COLOR=$RED
|
|
#sketchybar -m --set mic icon.color=$RED icon= icon.font="0xProto Nerd Font Mono:Bold:20"
|
|
elif [[ $MIC_VOLUME -gt 0 ]]; then
|
|
ICON=" "
|
|
COLOR=$GREEN
|
|
fi
|
|
#sketchybar -m --set mic icon= icon.color=$GREEN icon.font="0xProto Nerd Font Mono:Bold:25"
|
|
sketchybar -m --set mic icon="$ICON" icon.color="$COLOR" icon.font="0xProto Nerd Font Mono:Bold:30"
|