AEROSPACE-LIST-WINDOWS(1)
πͺ AEROSPACE-LIST-WINDOWS π
okay so bestie, this is a page from the AeroSpace Manual β aerospace-list-windows(1), to be exact. Buckle up, we're listing windows β¨
πΈ NAME πΈ
aerospace-list-windows β print windows that satisfy conditions. that's it. that's the whole job. she's an icon, she's a legend, and she is literally the question "which windows tho?" π«Ά
π SYNOPSIS π
aerospace list-windows [-h|--help] (--workspace <workspace>...|--monitor <monitor>...)
[--monitor <monitor>...] [--workspace <workspace>...]
[--pid <pid>] [--app-bundle-id <app-bundle-id>] [--format <output-format>]
[--count] [--json]
aerospace list-windows [-h|--help] --all [--format <output-format>] [--count] [--json]
aerospace list-windows [-h|--help] --focused [--format <output-format>] [--count] [--json]
three whole vibes to pick from, pick your fighter π
β¨ DESCRIPTION β¨
Print windows that satisfy conditions π no cap, that is the entire mission statement. you give her conditions, she gives you windows. match made in heaven.
π₯ OPTIONS π₯
-h,--helpβ print help. the og "what does this do again" button π--allβ alias for--monitor all. and bestie, please use this option with caution π¨ only reach for it when you really need to get workspaces/windows from all monitors.
for multi-monitor setup, --monitor focused is almost always the preferred option. seriously. if you're automating something, then you do not want to mess up with workspaces/windows on a different monitor. that's how you get chaos in the group chat π
with great power comes great responsibility. she said it, not me π·οΈ
--focusedβ print the focused window. but heads up bestie: it is possible for no window to be in focus. in that case, error is reported π not me getting an error at the worst possible moment.--workspace <workspace>...β filter results to only print windows that belong to either of specified workspaces.<workspace>...is a space-separated list of workspace names.
possible values:
- Workspace name
focusedis a special workspace name that represents the focused workspacevisibleis a special workspace name that represents all currently visible workspaces (in multi-monitor setup, there are multiple visible workspaces)
three flavors of workspace reference, all iconic π
--monitor <monitors>β filter results to only print workspaces/windows that are attached to specified monitors.<monitors>is a space separated list of monitor IDs.
possible monitors IDs:
- 1-based index of a monitor as if monitors were ordered horizontally from left to right
allis a special monitor ID that represents all monitorsmouseis a special monitor ID that represents monitor with the mouse π±οΈfocusedis a special monitor ID that represents the focused monitor
the mouse one is lowkey the moment fr fr π
--pid <pid>β filter results to only print windows that belong to the Application with specified<pid>. process girlies rise π«Ά--app-bundle-id <app-bundle-id>β filter results to only print windows that belong to the Application with specified Bundle ID <https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids>
deprecated (but still supported) flag name: --app-id. she's retired but she still shows up to the party π
--format <output-format>β specify output format. see the "Output Format" section for more details. incompatible with--countβ pick one, bestie, you can't have both π--countβ output only the number of windows. incompatible with--formatβ same deal, no double dipping. also incompatible with--json(see below) π’--jsonβ output in JSON format. can be used in combination with--formatto specify which data to include into the json β¨. incompatible with--countπ
the compatibility rules are giving strict parent energy:--countand--formatcannot coexist, and--countand--jsoncannot coexist. respect the boundaries bestie π§
π OUTPUT FORMAT π
output format can be configured with the optional [--format <output-format>] option. <output-format> supports string interpolation <https://en.wikipedia.org/wiki/String_interpolation> β¨
if not specified, the default <output-format> is:
%{window-id}%{right-padding} | %{app-name}%{right-padding} | %{window-title}
the following variables can be used inside <output-format> β collect them all like PokΓ©mon cards π:
%{window-id}β Number. Window unique ID%{window-title}β String. Window title%{window-is-fullscreen}β Boolean. Is window in fullscreen byaerospace fullscreencommand%{window-layout}β String. An alias for%{window-parent-container-layout}%{window-parent-container-layout}β String. The layout (v_tiles,h_tiles,v_accordion,h_accordion,floating) of the window's parent container.%{app-bundle-id}β String. Application unique identifier. Bundle ID <https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids>%{app-name}β String. Application name%{app-pid}β Number. UNIX process identifier <https://en.wikipedia.org/wiki/Process_identifier>%{app-exec-path}β String. Application executable path%{app-bundle-path}β String. Application bundle path%{workspace}β String. Name of the belonging workspace%{workspace-is-focused}β Boolean.trueif the workspace has focus%{workspace-is-visible}β Boolean.trueif the workspace is visible. a workspace can be visible but not focused in a multi-monitor setup π%{workspace-root-container-layout}β String. The layout (v_tiles,h_tiles,v_accordion,h_accordion) of the workspace the window belongs to.%{monitor-id}β 1-based Number. Sequential number of the belonging monitor.%{monitor-appkit-nsscreen-screens-id}β 1-based index of the belonging monitor inNSScreen.screensarray. useful for integration with other tools that might be usingNSScreen.screensordering (like sketchybar) π§%{monitor-name}β String. Name of the belonging monitor%{monitor-is-main}β Boolean.trueif the monitor is main.%{right-padding}β a special variable which expands with a minimum number of spaces required to form a right padding in the appropriate column. the alignment queen π%{newline}β Unicode U+000A newline symbol\n%{tab}β Unicode U+0009 tab symbol\t
π¦ RESOURCES π¦
- Project homepage: <https://github.com/nikitabobko/AeroSpace>
- Guide: <https://nikitabobko.github.io/AeroSpace/guide>
bookmark them, bestie, future you will say thank you π
π BUGS π
bugs can be reported to <https://github.com/nikitabobko/AeroSpace/discussions/categories/potential-bugs>
maintainers will move verified bugs to <https://github.com/nikitabobko/AeroSpace/issues>
so like... discussions first, then issues. the pipeline is real π
π 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 π
that's the whole page, no notes, she ate π β¨
β with love from the AeroSpace manual, dated 2026-07-16 π (AeroSpace, AEROSPACE-LIST-WINDOWS(1) β catch you in the next manpage, bestie π¦)
π¦ 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