FlashSpace
> Published on Thu, Feb 15, 2024> Updated on Sat, Feb 15, 2025
When using the flashspace
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:
config
workspace
Examples:
# Force simple-bar space widget refresh with new config
curl http://localhost:7776/flashspace/config/refresh
# Force workspace widget refresh with new current workspace value
curl http://localhost:7776/flashspace/workspace/refresh
In order to call simple-bar-server
when necessary, you'll need to "Enable Integrations" in FlashSpace settings > "Integrations" and add these commands in the "Scripts To Run" rows:
# On App Launch
curl "http://localhost:7776/flashspace/config/refresh"
# On Workspace Change
curl "http://localhost:7776/flashspace/workspace/refresh"
# On Profile Change
curl "http://localhost:7776/flashspace/config/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 FlashSpace
in order to prevent multiple useless re-renders.