You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding AEROSPACE_EMPTY_WORKSPACES to the exec-on-workspace-change event will make it possible to dynamically show/hide or visually indicate which workspace has no windows currently in it in sketchybar or similar softwares.
#!/usr/bin/env bash# make sure it's executable with:# chmod +x ~/.config/sketchybar/plugins/aerospace.sh#!/usr/bin/env bash# make sure it's executable with:# chmod +x ~/.config/sketchybar/plugins/aerospace.shifecho"$EMPTY_WORKSPACES"| grep -q "$1";then
LABEL_COLOR="$RED"# marks empty workspaces in redelse
LABEL_COLOR="$WHITE"# marks workspaces with windows in whitefiif [ "$1"="$FOCUSED_WORKSPACE" ];then
sketchybar --set $NAME background.drawing=on label.color="$LABEL_COLOR"else
sketchybar --set $NAME background.drawing=off label.color="$LABEL_COLOR"fi
Currently, if adding EMPTY_WORKSPACES=$(aerospace list-workspaces --monitor focused --empty) to ~/.config/sketchybar/plugins/aerospace.sh it is slow, because it computes it for every workspace on workspace change, which is not ideal and the performance drop is visible. I could not find other way to do it dynamically so it updates if the workspace becomes empty/popuplated. I've red to readmes many times, looked at other configs in github for a way to do it with no luck.
Checklist
I've searched for duplicates. My search queries were (please don't forget to search in closed issues too):
Adding
AEROSPACE_EMPTY_WORKSPACES
to theexec-on-workspace-change
event will make it possible to dynamically show/hide or visually indicate which workspace has no windows currently in it in sketchybar or similar softwares.Example from the AeroSpace Goodness section in the readme:
aerospace.toml
.config/sketchybar/plugins/aerospace.sh
Currently, if adding
EMPTY_WORKSPACES=$(aerospace list-workspaces --monitor focused --empty)
to~/.config/sketchybar/plugins/aerospace.sh
it is slow, because it computes it for every workspace on workspace change, which is not ideal and the performance drop is visible. I could not find other way to do it dynamically so it updates if the workspace becomes empty/popuplated. I've red to readmes many times, looked at other configs in github for a way to do it with no luck.Checklist
The text was updated successfully, but these errors were encountered: