From 4fc792530511db1f3d770c9f6b0c50e858fbe39f Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 9 Jun 2024 06:54:34 +0100 Subject: [PATCH] Add some more rules for game windows Fix a typo (by removing that entry) --- programs/desktop/sway/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/programs/desktop/sway/default.nix b/programs/desktop/sway/default.nix index 042190d..55ae93f 100644 --- a/programs/desktop/sway/default.nix +++ b/programs/desktop/sway/default.nix @@ -108,13 +108,10 @@ command = "inhibit_idle fullscreen"; } { - # Controllers don't reset idle timer + # Window rules for game sessions. + # Note: controllers don't reset idle timer criteria.class = "(?:steam_app|Minecraft).*"; - command = "inhibit_idle focus"; - } - { - criteria.criteria = "Minecraft.*"; - command = "fullscreen enable"; + command = "floating enable, fullscreen enable, inhibit_idle focus"; } ]; };