diff --git a/profiles/applications/games/steam.nix b/profiles/applications/games/steam.nix index 6e924e3..9ec51d7 100644 --- a/profiles/applications/games/steam.nix +++ b/profiles/applications/games/steam.nix @@ -6,7 +6,14 @@ programs.gamescope.enable = true; programs.gamescope.capSysNice = false; - startupApplications = [ "steam" ]; + # startupApplications = [ "steam" ]; + startupApplications = let + gs = pkgs.writeShellScriptBin "gamescope-steam" '' + gamescope --steam --borderless -- steam + ''; + in [ + "${gs}/bin/gamescope-steam" + ]; systemd.user.services.x11-ownership = { script = '' diff --git a/profiles/workspace/hyprland/default.nix b/profiles/workspace/hyprland/default.nix index 2dc0d43..cfecb33 100644 --- a/profiles/workspace/hyprland/default.nix +++ b/profiles/workspace/hyprland/default.nix @@ -250,6 +250,7 @@ in with config.deviceSpecific; with lib; { bind=${modifier}ALT,Cyrillic_E,movetoworkspace,name:Messengers '' '' windowrulev2=workspace name:Steam silent,class:^(steam)$ + windowrulev2=workspace name:Steam silent,class:^(.gamescope-wrapped)$,title:(Steam) windowrulev2=workspace name:Music silent,title:^(Spotify)$ windowrulev2=tile,title:^(Spotify)$ windowrulev2=workspace name:Messengers silent,class:^(org.telegram.desktop)$