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"; } ]; };