#!/usr/bin/env bash # make sure it's executable with: # chmod +x ~/.config/sketchybar/plugins/aerospace.sh # SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) source $SCRIPT_DIR/../colours.sh if [ "$1" = "$FOCUSED_WORKSPACE" ]; then # If workspace is focused sketchybar --set $NAME background.color=$PRIMARY_COLOUR label.color=$BACKGROUND_COLOUR else sketchybar --set $NAME background.color=$BACKGROUND_COLOUR label.color=$PRIMARY_COLOUR fi