AeroSpace
> Published on Wed, 24 Jul 2024, 19:30> Updated on Sun, 5 Jan 2025, 16:05
When using the aerospace
realm, target
is the name of the target you want to refresh (see the list below for allowed targets) and action
is the action you want to perform on it (the only allowed action is refresh
).
Here is the list of the available targets:
spaces
Examples:
shell# Force spaces widget refresh curl http://localhost:7776/aerospace/spaces/refresh
If you want to sync theses refresh with AeroSpace, put the following lines in your AeroSpace config file (.aerospace.toml
):
tomlon-focus-changed = [ "exec-and-forget curl http://localhost:7776/aerospace/spaces/refresh", ] exec-on-workspace-change = [ '/bin/zsh', '-c', 'curl http://localhost:7776/aerospace/spaces/refresh', ]
Adapt the port number if you changed it in the config file.
Events overlapping is not an issue as the server will queue consecutive refreshes requested by AeroSpace
in order to prevent multiple useless re-renders.
Something is wrong in this documentation? Please open an issue on GitHub in simple-bar-server repo.