sketchybar: init

This commit is contained in:
Nico 2025-10-04 13:45:49 +10:00
parent ded82a8f8b
commit ae71080920
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
10 changed files with 182 additions and 96 deletions

View file

@ -0,0 +1,14 @@
#!/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