mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
22 lines
312 B
Bash
Executable File
22 lines
312 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "$CONFIG_DIR/colors.sh"
|
|
|
|
COUNT="$(brew outdated | wc -l | tr -d ' ')"
|
|
|
|
COLOR=$RED
|
|
|
|
case "$COUNT" in
|
|
[3-5][0-9]) COLOR=$ORANGE
|
|
;;
|
|
[1-2][0-9]) COLOR=$YELLOW
|
|
;;
|
|
[1-9]) COLOR=$WHITE
|
|
;;
|
|
0) COLOR=$GREEN
|
|
COUNT=
|
|
;;
|
|
esac
|
|
|
|
sketchybar --set $NAME label=$COUNT icon.color=$COLOR
|