27 Commits

Author SHA1 Message Date
kinnrai
58e05d16d7 aerospace: skip config reload when AeroSpace is not running
Avoid failing Home Manager activation when the generated AeroSpace
configuration changes while AeroSpace is not yet running.

The onChange hook can run before a running AeroSpace instance is
available. Probe the running instance with `aerospace list-modes --current`
before calling `reload-config`, and skip the reload if AeroSpace is not
yet running.
2026-06-02 08:54:53 -05:00
Austin Horstman
355734d876 treewide: remove literalExpression where unneeded
`literalExpression` is intended just to signify code that needs to stay
a string that gets represented exactly as-is for docs. It has been
misused heavily and people get confused repeatedly on when or not to use
it because of the rampant misuse.
2026-05-17 21:43:25 -05:00
Austin Horstman
01ea51d706 treewide: use inherit for attribute assignments
This change converts redundant attribute assignments of the form `a =
a;` or `a = someSet.a;` into cleaner `inherit` statements. This reduces
verbosity and follows common Nix style for bringing attributes into
scope.

Statix Codes: W03 (manual_inherit), W04 (manual_inherit_from)

Also include statix and the rule in our configuration.
2026-04-08 14:47:48 -05:00
damidoug
1ed596c638 aerospace: remove extraConfig, use settings instead 2025-11-27 22:27:29 -06:00
damidoug
9f31ea236b aerospace: add more settings examples 2025-11-27 22:27:29 -06:00
damidoug
b414c94d4e aerospace: fallback default settings 2025-11-27 22:27:29 -06:00
damidoug
5b8d259ee6 aerospace: auto-reload config on file changes; 2025-11-27 22:27:29 -06:00
damidoug
29b672194d aerospace: add assertion to ensure launchd.enable and after-startup-command are used instead of start-at-login and after-login-command 2025-11-27 22:27:29 -06:00
damidoug
f302550865 aerospace: rename userSettings → settings 2025-11-27 22:27:29 -06:00
Austin Horstman
432bc8a5da aerospace: simplify userSettings
Remove submodule and just use the generator type.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-06 07:22:43 -06:00
Leon
7f619d2a72 aerospace: remove broken on-window-detected option 2025-11-06 07:22:43 -06:00
andre4ik3
124b99dbd1 aerospace: don't use ifd 2025-10-29 15:47:12 -05:00
Leon Erd
64020f453b aerospace: add extraConfig 2025-10-25 21:37:58 -05:00
Ihar Hrachyshka
ed1a98c375 aerospace: use upstream example for exec-on-workspace-change (#7765)
White technically any example would do, it's better to use the one from
upstream docs, otherwise we may confuse users trying to repeat upstream
aerospace sketchybar plugin recipe. (I for one fell a victim of the
confusion...)

https://nikitabobko.github.io/AeroSpace/goodies#show-aerospace-workspaces-in-sketchybar
2025-09-03 21:54:59 -05:00
BeLeap
bbfbda4ad8 aerospace: allow colemak on key-mapping
a8cd536ca1
2025-08-18 21:17:26 -05:00
Austin Horstman
b8bb556ce5 maintainers: remove duplicate HM entries
We can remove duplicate entries and redirect to the nixpkgs entry.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-04 09:20:48 -05:00
damidoug
d33444e63a aerospace: Add launchd agent and enhance configuration 2025-06-23 20:30:43 -05:00
Austin Horstman
86402a17b6 treewide: flatten single file modules
Some files don't need nesting and can be root level again to reduce
conflicts with other PRs.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-23 16:20:26 -05:00
Austin Horstman
4fca600cb1 treewide: implement auto importing for modules
Reduce maintenance burden and increase efficiency by automatically
importing modules following a specific convention.

Co-authored-by: awwpotato <awwpotato@voidq.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00
andre4ik3
6bccb54a4f aerospace: revert flattening on-window-detected rules (#6803)
This reverts commits 95861b5d9f and
d2c014e1c7 (PR #6778), as they broke
Aerospace configuration loading. Whilst the generated TOML configuration
wasn't the best, it was completely valid, whereas after the
aforementioned PR it was no longer valid.
2025-04-11 08:17:15 -05:00
Austin Horstman
cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00
Alex Mason
95861b5d9f aerospace: Add flattenOnWindowDetected function 2025-04-08 08:17:43 -07:00
Austin Horstman
d2c014e1c7 treewide: null package support (#6582)
Can generate the config without installing application through home-manager. Helpful when a package is broken (or not provided) on a specific platform through nixpkgs and needs to be installed through other means but you still can benefit from the declarative configuration.
2025-03-07 18:17:52 -06:00
derrik
a70d788923 aerospace: fix workspace assignment config (#6442)
with the default to `{}`, this table is always set in the generated
config. this change allows `null` for
`workspace-to-monitor-force-assignment` and sets the default to `null`

Co-authored-by: derrik.fleming <derrik.fleming@spindance.com>
2025-02-13 08:24:38 -06:00
Austin Horstman
7a45774684 aerospace: enable option desc fix (#6375) 2025-01-30 11:25:49 -06:00
Austin Horstman
c621c26c4c aerospace: cleanup 2025-01-30 17:22:03 +01:00
DamiDoug
d5e5c0d051 aerospace: add module (#6279)
Co-authored-by: damidoug <contact@damidoug.dev>
2025-01-29 16:04:24 -06:00