start steam with gamescope

This commit is contained in:
Dmitriy Kholkin 2023-11-16 03:46:46 +03:00
parent 5dd599b1ae
commit 69525d4046
2 changed files with 9 additions and 1 deletions

View File

@ -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 = ''

View File

@ -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)$