Skip to content

Conversation

@mike-jl
Copy link

@mike-jl mike-jl commented May 30, 2024

Using this command, its posible to refresh Spaceman using apple script:
tell application "Spaceman" to refresh

When using yabai, you can make sure that the icons stay up to date with the following code added to the end of yabairc:

signals=(
   "space_changed"
   "display_added"
   "display_removed"
   "display_moved"
   "display_changed"
   "mission_control_enter"
   "mission_control_exit"
   "space_created"
   "space_destroyed"
)
for signal in "${signals[@]}"
do
   yabai --message signal \
         --add \
            event=$signal \
            action="osascript -e 'tell application \"Spaceman\" to refresh'"
done

@mike-jl mike-jl changed the title Add apple script Refresh command feature: Add apple script Refresh command May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant