Sync from mac

This commit is contained in:
js0ny 2025-01-20 10:14:02 +00:00
parent 61d3539d2a
commit 35abdadfec
6 changed files with 77 additions and 51 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# make sure it's executable with:
# chmod +x ~/.config/sketchybar/plugins/aerospace.sh
if [ "$1" = "$FOCUSED_WORKSPACE" ]; then
sketchybar --set $NAME background.drawing=on
else
sketchybar --set $NAME background.drawing=off
fi

View file

@ -100,3 +100,19 @@ sketchybar --set music \
##### Force all scripts to run the first time (never do this in a script) #####
sketchybar --update
sketchybar --add event aerospace_workspace_change
for sid in $(aerospace list-workspaces --all); do
sketchybar --add item space.$sid left \
--subscribe space.$sid aerospace_workspace_change \
--set space.$sid \
background.color=0x44ffffff \
background.corner_radius=5 \
background.height=20 \
background.drawing=off \
label="$sid" \
click_script="aerospace workspace $sid" \
script="$CONFIG_DIR/plugins/aerospace.sh $sid"
done