aerospace-edge run-callback¶
Run AeroSpace config callbacks on demand
Synopsis¶
aerospace-edge run-callback [-h|--help] [--for-every-window|--window-id <window-id>] on-window-detected
aerospace-edge run-callback [-h|--help] (on-focus-changed|on-focused-monitor-changed)
Description¶
Run AeroSpace config callbacks on demand
The command lets you manually re-run callbacks that AeroSpace-edge normally invokes in response to events:
-
on-window-detected- callbacks defined byon-window-detectedconfig option. By default the callbacks are run for the focused window only. Pass--for-every-windowto apply the callbacks to every currently known window (useful right afterreload-configto retroactively apply new rules to already open windows), or pass--window-idto target a specific window. -
on-focus-changed- runs commands listed under theon-focus-changedconfig key. -
on-focused-monitor-changed- runs commands listed under theon-focused-monitor-changedconfig key.
The command forwards stdout and stderr of all commands run in the callback. That opens up one more usecase - you can use this command to see the output of your callbacks.
Options¶
-h,--help-
Print help
--for-every-window-
Run
on-window-detectedcallbacks for every window. Only valid withon-window-detected. Mutually exclusive with--window-id. --window-id <window-id>-
Act on the specified window instead of the focused window. The flag takes precedence over
AEROSPACE_WINDOW_IDandAEROSPACE_WORKSPACEenvironment variables.
Only valid with on-window-detected. Mutually exclusive with --for-every-window.
Arguments¶
<callback>-
One of:
on-window-detected,on-focus-changed,on-focused-monitor-changed
Exit Codes¶
The command forwards the exit code of the callback.