FlashSpace

> Published on Sat, 15 Feb 2025, 18:09> Updated on Sat, 15 Feb 2025, 18:09

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:

shell
# 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:

shell
# 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.

Something is wrong in this documentation? Please open an issue on GitHub in simple-bar-server repo.