mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
31 lines
667 B
Bash
Executable File
31 lines
667 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "$CONFIG_DIR/icons.sh"
|
|
source "$CONFIG_DIR/colors.sh"
|
|
|
|
if [ "$SENDER" = "svim_update" ]; then
|
|
DRAWING=on
|
|
DRAW_CMD=off
|
|
COLOR=$WHITE
|
|
case "$MODE" in
|
|
"I") ICON="$MODE_INSERT" DRAWING=off
|
|
;;
|
|
"N") ICON="$MODE_NORMAL"
|
|
;;
|
|
"V") ICON="$MODE_VISUAL" COLOR=$YELLOW
|
|
;;
|
|
"C") ICON="$MODE_CMD" DRAW_CMD=on COLOR=$RED
|
|
;;
|
|
"_") ICON="$MODE_PENDING"
|
|
;;
|
|
*) DRAWING=off
|
|
;;
|
|
esac
|
|
|
|
sketchybar --set $NAME drawing="$DRAWING" \
|
|
label.drawing="$DRAW_CMD" \
|
|
icon="$ICON" \
|
|
icon.color="$COLOR" \
|
|
label="$CMDLINE"
|
|
fi
|