dots/stow/.config/sketchybar/plugins/aerospace.sh
2025-10-04 13:45:49 +10:00

14 lines
485 B
Bash
Executable file

#!/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