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 \