From 82595662b1b495bd51fb13aae01be2fa57e33e90 Mon Sep 17 00:00:00 2001 From: Talha Can Havadar Date: Thu, 14 Nov 2024 18:59:04 +0100 Subject: [PATCH] aerospace: fix on-window-detected --- modules/services/aerospace/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/services/aerospace/default.nix b/modules/services/aerospace/default.nix index 50d47b3b5..dc806ec01 100644 --- a/modules/services/aerospace/default.nix +++ b/modules/services/aerospace/default.nix @@ -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;