1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

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>
This commit is contained in:
derrik 2025-02-13 09:24:38 -05:00 committed by GitHub
parent c9d343cfa0
commit a70d788923
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -154,8 +154,9 @@ in {
"Commands to run every time a new window is detected with optional conditions.";
};
workspace-to-monitor-force-assignment = mkOption {
type = with types; attrsOf (oneOf [ int str (listOf str) ]);
default = { };
type = with types;
nullOr (attrsOf (oneOf [ int str (listOf str) ]));
default = null;
description = ''
Map workspaces to specific monitors.
Left-hand side is the workspace name, and right-hand side is the monitor pattern.

View file

@ -25,5 +25,3 @@ alt-h = "focus left"
alt-j = "focus down"
alt-k = "focus up"
alt-l = "focus right"
[workspace-to-monitor-force-assignment]