From 4829a945b95a8794707273f1b0c0406ee84a7b6e Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Wed, 8 Jul 2026 22:33:54 +0100 Subject: [PATCH] enable gamescope, add hyprland cs2 window rule --- configs/hypr/rules.lua | 4 ++++ hosts/graphical/configuration.nix | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/configs/hypr/rules.lua b/configs/hypr/rules.lua index 3ac37a3..f899531 100644 --- a/configs/hypr/rules.lua +++ b/configs/hypr/rules.lua @@ -65,3 +65,7 @@ for _, fo_inhib in ipairs(focus_inhibits) do idle_inhibit = "focus", }) end + +hl.window_rule({ + match = { class = "cs2" }, immediate = true +}) diff --git a/hosts/graphical/configuration.nix b/hosts/graphical/configuration.nix index 370f421..e79a27d 100644 --- a/hosts/graphical/configuration.nix +++ b/hosts/graphical/configuration.nix @@ -138,9 +138,14 @@ }; }; }; + gamescope = { + enable = true; + capSysNice = true; + }; steam = { enable = true; + gamescopeSession.enable = true; remotePlay.openFirewall = true; dedicatedServer.openFirewall = true; };