diff --git a/home-manager/features/gaming.nix b/home-manager/features/gaming.nix index 79cff18..b7e8f96 100644 --- a/home-manager/features/gaming.nix +++ b/home-manager/features/gaming.nix @@ -90,4 +90,21 @@ in comment = "Raider.io Client"; categories = [ "Game" ]; }; + + wayland.windowManager.hyprland.settings.windowrulev2 = [ + # Set up full-screen games on monitor 1 (since window 0 is the vertical one.) + "monitor 1,class:^steam_app_\d+$" + "float,class:^steam_app_\d+$" + "monitor 1,fullscreen:1" + "center,class:^steam_app_\d+$" + + # Make sure WoW spawns on the right monitor and that Battlenet floats so it renders correctly + "monitor 1,title:^World of Warcraft$" + "monitor 1,title:^Battle.net$" + "float,title:^Battle.net$" + + # Make Balatro into a regular window. + "monitor 1,title:^Balatro$" + "tile,title:^Balatro$" + ]; } diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index 75f54c5..7175db6 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -394,16 +394,6 @@ "opaque,class:(),title:()" "noshadow,class:(),title:()" "noblur,class:(),title:()" - - # Set up full-screen games on monitor 1 - "monitor 1,class:^steam_app_\d+$" - "float,class:^steam_app_\d+$" - "monitor 1,fullscreen:1" - "center,class:^steam_app_\d+$" - - "monitor 1,title:^World of Warcraft$" - "monitor 1,title:^Battle.net$" - "float,title:^Battle.net$" ]; # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules