Skip to content

Commit 9e78461

Browse files
committed
feat: add clickable workspace buttons with opacity to sketchybar
- Add click_script to workspace buttons to switch workspaces via AeroSpace - Add WHITE_DIMMED color variable (50% opacity) - Dim inactive workspace icons and labels for better visual hierarchy - Active workspace remains fully opaque with background highlight
1 parent 987c966 commit 9e78461

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

systems/aarch64-darwin/sketchybar/colors.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Color Palette
44
export BLACK=0xff1e1e2e
55
export WHITE=0xffffffff
6+
export WHITE_DIMMED=0x80ffffff
67
export GREY=0xff6c7086
78
export TRANSPARENT=0x00000000
89

systems/aarch64-darwin/sketchybar/items/spaces.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ for sid in "${SPACE_SIDS[@]}"; do
1515
background.height=20
1616
background.corner_radius=4
1717
background.drawing=off
18+
click_script="aerospace workspace $sid"
1819
)
1920

2021
sketchybar --add item "space.$sid" left \

systems/aarch64-darwin/sketchybar/plugins/space.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ if [ "$SPACE_ID" = "$FOCUSED_WORKSPACE" ]; then
2121
else
2222
sketchybar --set "$NAME" \
2323
background.drawing=off \
24-
label.color="$WHITE" \
25-
icon.color="$WHITE"
24+
label.color="$WHITE_DIMMED" \
25+
icon.color="$WHITE_DIMMED"
2626
fi

0 commit comments

Comments
 (0)