diff --git a/stow/.config/sketchybar/plugins/space.sh b/stow/.config/sketchybar/plugins/space.sh deleted file mode 120000 index 9836491..0000000 --- a/stow/.config/sketchybar/plugins/space.sh +++ /dev/null @@ -1 +0,0 @@ -aerospace.sh \ No newline at end of file diff --git a/stow/.config/sketchybar/plugins/space.sh b/stow/.config/sketchybar/plugins/space.sh new file mode 100755 index 0000000..aec9596 --- /dev/null +++ b/stow/.config/sketchybar/plugins/space.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +source $SCRIPT_DIR/../colours.sh + +if [ $SELECTED = 'true' ]; then + sketchybar --set $NAME background.color=$PRIMARY_COLOUR label.color=$BACKGROUND_COLOUR +else + sketchybar --set $NAME background.color=$BACKGROUND_COLOUR label.color=$PRIMARY_COLOUR +fi