AEROSPACE-RUN-CALLBACK(1)
π AEROSPACE-RUN-CALLBACK(1) β the AeroSpace Manual era π¦
okay so bestie, this is aerospace-run-callback from the AeroSpace manual, and honestly? it's giving "let me press the button myself" energy. it runs your AeroSpace config callbacks on demand. periodt β¨
π NAME
aerospace-run-callback β run AeroSpace config callbacks on demand π«Ά
β¨ SYNOPSIS
aerospace run-callback [-h|--help] [--for-every-window|--window-id <window-id>] on-window-detected
aerospace run-callback [-h|--help] (on-focus-changed|on-focused-monitor-changed)
like, that's literally the whole shape of it. two forms, pick your fighter πΈ
π DESCRIPTION
Run AeroSpace config callbacks on demand π
so normally AeroSpace fires these callbacks all by itself when events happen. this command is your little rewind button π₯ β you get to manually re-run the callbacks:
on-window-detectedβ the callbacks defined by theon-window-detectedconfig option. by default they only run for the focused window, ngl. pass--for-every-windowif you want the callbacks to hit every currently known window β truly iconic right afterreload-config, so your new rules retroactively apply to windows that were already open πͺβ¨ β or pass--window-idto target one specific window.on-focus-changedβ runs the commands listed under theon-focus-changedconfig key. simple. slay. πon-focused-monitor-changedβ runs the commands listed under theon-focused-monitor-changedconfig key. monitor main character energy π
and here's the cute part: the command forwards stdout and stderr of all commands run in the callback ππ which opens up one more usecase β you can literally use this command to see the output of your callbacks. debugging but make it a vibe check π
π OPTIONS
-h,--helpβ print help. classic. we love a helpful queen π--for-every-windowβ runon-window-detectedcallbacks for every window. only valid withon-window-detected, and it's mutually exclusive with--window-idπ« β you can't have both, bestie, pick one.--window-id <window-id>β act on the specified window instead of the focused window. this flag takes precedence over theAEROSPACE_WINDOW_IDandAEROSPACE_WORKSPACEenvironment variables π (yes, it wins, no cap).
only valid with on-window-detected. mutually exclusive with --for-every-window. again: one or the other π«Ά
π¦ ARGUMENTS
<callback>β one of:on-window-detected,on-focus-changed,on-focused-monitor-changed
literally just type one of those three. that's it. that's the argument π
π EXIT CODES
the command forwards the exit code of the callback. whatever the callback did, that's what you get back β no filter, fr fr π€
π RESOURCES
- project homepage:
https://github.com/nikitabobko/AeroSpace - guide:
https://nikitabobko.github.io/AeroSpace/guide
go read the guide, i'm begging π§
π BUGS
found a bug? report it to https://github.com/nikitabobko/AeroSpace/discussions/categories/potential-bugs π
the maintainers will move verified bugs to https://github.com/nikitabobko/AeroSpace/issues β so it's like a whole glow-up pipeline for your bug report β¨
π LICENSE
Copyright Β© 2023 Nikita Bobko
free use of this software is granted under the terms of the MIT License π
you can find the full text of AeroSpace license and its dependencies in the 'legal' directory of the distributed zip archive π
π AUTHOR
Nikita Bobko and contributors π«Ά
and that's the whole page, bestie β AeroSpace manual, dated 2026-07-16, brought to you with love (and zero chill) π
ππ¦
π¦ where this page comes from
- nixpkgs unstable: aerospace 0.21.3-Beta
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms