From 0e9671a45fa07bb58bdf5f274e0c9889eb6e1ef7 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Fri, 5 Dec 2025 14:44:23 -0800 Subject: [PATCH] Fix SketchyBar workspace indicators not appearing after 25.11 upgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add explicit `drawing=on` to all workspace item states (initial creation, focused, non-empty, and empty) to prevent items from getting stuck with `drawing=off`. With `updates=when_shown`, items with `drawing=off` never run their update scripts, causing workspaces that start empty to never appear even when focused or given windows. Changes: - Add drawing=on to initial workspace creation (line 393) - Add drawing=on to focused workspace state (line 568) - Add drawing=on to empty workspace state (line 582) - Add drawing=on to non-empty workspace state (line 591) - Update comment for empty workspace to explain drawing=on usage This ensures workspace indicators automatically appear within 2 seconds when focused or given windows, without needing manual `sketchybar --update`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- home/roles/aerospace/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/roles/aerospace/default.nix b/home/roles/aerospace/default.nix index 874fc07..f067fdd 100644 --- a/home/roles/aerospace/default.nix +++ b/home/roles/aerospace/default.nix @@ -390,6 +390,7 @@ in ${pkgs.sketchybar}/bin/sketchybar --add item space.$sid left \ --subscribe space.$sid aerospace_workspace_change \ --set space.$sid \ + drawing=on \ update_freq=2 \ width=32 \ background.color=$ITEM_BG \ @@ -565,6 +566,7 @@ in if [ "$IS_FOCUSED" = "true" ]; then # Focused workspace - always show with focused styling ${pkgs.sketchybar}/bin/sketchybar --set space.$WORKSPACE_NUM \ + drawing=on \ icon="$DISPLAY" \ width=32 \ icon.padding_left=13 \ @@ -575,8 +577,9 @@ in icon.color=$TEXT elif [ "$IS_EMPTY" = "true" ]; then # Empty workspace (not focused) - hide by collapsing width and clearing content - # Using width=0 + empty icon/label instead of drawing=off because drawing=off doesn't reliably re-show items + # Using width=0 with drawing=on so updates=when_shown continues to run the script ${pkgs.sketchybar}/bin/sketchybar --set space.$WORKSPACE_NUM \ + drawing=on \ icon="" \ label="" \ width=0 \ @@ -586,6 +589,7 @@ in else # Non-empty workspace (not focused) - show with inactive styling ${pkgs.sketchybar}/bin/sketchybar --set space.$WORKSPACE_NUM \ + drawing=on \ icon="$DISPLAY" \ width=32 \ icon.padding_left=13 \