Skip to content

Commit

Permalink
aerospace: fix on-window-detected
Browse files Browse the repository at this point in the history
  • Loading branch information
talhaHavadar committed Dec 2, 2024
1 parent 6c71c49 commit 8259566
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/services/aerospace/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,17 @@ in
description = "Default orientation for the root container.";
};
on-window-detected = lib.mkOption {
type = listOf str;
type = listOf (attrsOf anything);
default = [ ];
description = "Commands to run every time a new window is detected.";
example = [
{
"if".app-id = "Another.Cool.App";
"if".during-aerospace-startup = false;
"check-further-callbacks" = false;
"run" = "move-node-to-workspace m";
}
];
};
on-focus-changed = lib.mkOption {
type = listOf str;
Expand Down

0 comments on commit 8259566

Please sign in to comment.