#!/usr/bin/env bash source "$HOME/.config/sketchybar/variables.sh" # Loads all defined colors SPACE_ICONS=(" " " " "󰺻 " " " " " "6" "7" "8" "9" "10") SPACE_CLICK_SCRIPT="yabai -m space --focus $SID 2>/dev/null" if [ "$SELECTED" = "true" ]; then sketchybar --animate tanh 5 --set "$NAME" \ icon.color="$RED" \ icon="${SPACE_ICONS[$SID - 1]}" \ click_script="$SPACE_CLICK_SCRIPT" else sketchybar --animate tanh 5 --set "$NAME" \ icon.color="$COMMENT" \ icon="${SPACE_ICONS[$SID - 1]}" \ click_script="$SPACE_CLICK_SCRIPT" fi