AEROSPACE-LIST-MONITORS(1)
π AEROSPACE-LIST-MONITORS(1)
okay so bestie, welcome to the AeroSpace Manual β this is the aerospace-list-monitors page and it's literally gonna tell you how to print out the monitors that satisfy your conditions. yep. that's the whole gig. let's get into it β¨
πΈ NAME
aerospace-list-monitors β prints out monitors that satisfy conditions π₯οΈπ
π SYNOPSIS
aerospace list-monitors [-h|--help] [--focused [no]] [--mouse [no]] [--format <output-format>] [--count] [--json]
π¦ DESCRIPTION
Print monitors that satisfy conditions. that's it, that's the vibe β you give it some filters, it gives you monitors. iconic behavior honestly π
β¨ OPTIONS β¨
-h,--helpβ prints the help text. classic. the goat of "what does this even do" moments π«Ά--focused [no]β filters results so it only prints the focused monitor. and the[no]part? that inverts the condition, so you get everything except the focused one. no cap π―--mouse [no]β filters results so it only prints the monitor that has the mouse. and again,[no]inverts the condition. mouse-havers only, or mouse-havers-not, your call π±οΈπ--format <output-format>β tells it what output format you want. peek the Output Format section below for the deets. heads up bestie: this one is incompatible with--countπ«--countβ outputs only the number of monitors. no list, just the digits. also: incompatible with--formatπ«--jsonβ outputs in JSON format. and yes you can use it in combination with--formatto pick which data goes into the json π§ββοΈ but it's incompatible with--countπ«
π OUTPUT FORMAT
okay so this is the fun part. you can configure the output format with the optional [--format <output-format>] option, and <output-format> supports string interpolation (like, the Wikipedia kind: <https://en.wikipedia.org/wiki/String_interpolation>) β¨
if you don't specify anything, the default <output-format> is literally:
%{monitor-id}%{right-padding} | %{monitor-name}
and here are all the variables you can drop inside <output-format> π
%{monitor-id}β a 1-based number. it's the sequential number of the belonging monitor π’%{monitor-appkit-nsscreen-screens-id}β a 1-based index of the belonging monitor in theNSScreen.screensarray. super useful for integrating with other tools that might be usingNSScreen.screensordering β likesketchybar, iykyk π%{monitor-name}β a string. the name of the belonging monitor π·οΈ%{monitor-is-main}β a boolean.Trueif the monitor is main π%{right-padding}β a special variable that expands into the minimum number of spaces required to form a right padding in the appropriate column. it's giving formatting queen π%{newline}β the Unicode U+000A newline symbol\nβ¬οΈ%{tab}β the Unicode U+0009 tab symbol\tβ‘οΈ
π₯ RESOURCES
- Project homepage: <https://github.com/nikitabobko/AeroSpace>
- Guide: <https://nikitabobko.github.io/AeroSpace/guide>
go read them, they're lowkey essential π«Ά
π BUGS
found a bug? bestie, report it here: <https://github.com/nikitabobko/AeroSpace/discussions/categories/potential-bugs>
and then: maintainers will move verified bugs over to <https://github.com/nikitabobko/AeroSpace/issues>
so don't panic if your bug report gets relocated β that's just the pipeline working π
π 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 the AeroSpace license and its dependencies in the legal directory of the distributed zip archive πβ¨
π«Ά AUTHOR
Nikita Bobko and contributors
that's the whole page bestie, go forth and list those monitors π π₯οΈ
AeroSpace β 2026-07-16 β AEROSPACE-LIST-MONITORS(1) π
π¦ 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