AEROSPACE-TEST(1)
β¨ AEROSPACE-TEST π
(a.k.a. the aerospace-test manual page, section 1 of the AeroSpace Manual)
okay bestie, buckle up π β this is aerospace-test, the Condition evaluation utility, and honestly it's giving tiny-but-mighty main character energy.
πΈ NAME πΈ
aerospace-test β Condition evaluation utility β¨
π¦ SYNOPSIS π¦
aerospace test [-h|--help] <lhs> = <rhs>
aerospace test [-h|--help] <lhs> ~= <rhs>
π DESCRIPTION π
Condition evaluation utility. Yes, that's literally the whole tagline, and no, it doesn't need more, it ate.
So here's the vibe: the test utility evaluates the expression, and if it evaluates to true, it returns a zero (true) exit status π; otherwise it returns 1 (false) π.
The utility is inspired by the builtin /bin/test utility β like, it's lowkey the same idea, but make it AeroSpace.
<lhs> = <rhs>β Tests that<lhs>equals to<rhs>π―<lhs> ~= <rhs>β Tests that<lhs>contains case insensitive<rhs>regex π. The command fails if<lhs>is not a string π
π EXAMPLES π
Test if the application ID equals to Chrome:
aerospace test %{app-bundle-id} = com.google.Chrome
Test if the application name contains "chrome" (case insensitive):
aerospace test %{app-name} ~= chrome
see? iconic. no notes. π«Ά
β ARGUMENTS β
<lhs>β The left hand side of the expression. And listen, the left hand side must be one of the interpolation variables (see below) β that's not a suggestion, that's the rule π<rhs>β An integer, a boolean (true/false), a regex, or just a plain string. The way the expression is interpreted depends on the type of<lhs>and the infix operator π§ β¨
π§ INTERPOLATION VARIABLES π§
these are the little %{...} cuties you plug into <lhs> β collect them all π
%{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 (likesketchybar). π₯οΈ%{monitor-name}β String. Name of the belonging monitor%{monitor-is-main}β Boolean.trueif the monitor is main.
π EXIT CODES π
0β The expression has evaluated to true. slay! π1β The expression has evaluated to false. it's giving flop π>1β An error occurred. For instance, when<rhs>type doesnβt match<lhs>type, or if thetestsubcommand couldnβt be parsed. π not the parse error
π₯ RESOURCES π₯
- Project homepage: <https://github.com/nikitabobko/AeroSpace>
- Guide: <https://nikitabobko.github.io/AeroSpace/guide>
π 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> π
π 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 β¨ this one's from AeroSpace, dated 2026-07-16 β AEROSPACE-TEST(1), periodt. π
π
π¦ 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