Removed -steamdeck flag in steam; Small code refactors/cleaning

This commit is contained in:
Chris Toph 2025-06-22 19:54:38 -04:00
parent 4ec5bc09c5
commit 59e9543f3f

View file

@ -130,7 +130,7 @@ let
# This script wraps the original steam command to launch it # This script wraps the original steam command to launch it
# with gamescope-run in a big picture mode. # with gamescope-run in a big picture mode.
# All arguments passed to this script are forwarded. # All arguments passed to this script are forwarded.
exec ${lib.getExe gamescope-run} -x "-e" ${lib.getExe pkgs.steam} -tenfoot -steamdeck -gamepadui $argv exec ${lib.getExe gamescope-run} -x "-e" ${lib.getExe pkgs.steam} -tenfoot $argv
''; '';
## Ensures that all Lutris game launches go through Gamescope ## Ensures that all Lutris game launches go through Gamescope
@ -150,16 +150,11 @@ in
lutris-wrapper lutris-wrapper
]; ];
xdg.desktopEntries = xdg.desktopEntries = {
let
steamBigPictureCmd = ''${lib.getExe gamescope-run} -x "-e" ${lib.getExe pkgs.steam} -tenfoot -steamdeck'';
heroicGamescopeCmd = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.heroic}'';
in
{
steam = { steam = {
name = "Steam"; name = "Steam";
comment = "Steam Big Picture in Gamescope Session"; comment = "Steam Big Picture in Gamescope Session";
exec = steamBigPictureCmd; exec = "${lib.getExe steam-wrapper}";
icon = "steam"; icon = "steam";
type = "Application"; type = "Application";
terminal = false; terminal = false;
@ -186,7 +181,7 @@ in
"com.heroicgameslauncher.hgl" = { "com.heroicgameslauncher.hgl" = {
name = "Heroic Games Launcher"; name = "Heroic Games Launcher";
comment = "Heroic in Gamescope Session"; comment = "Heroic in Gamescope Session";
exec = heroicGamescopeCmd; exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.heroic}'';
icon = "com.heroicgameslauncher.hgl"; icon = "com.heroicgameslauncher.hgl";
type = "Application"; type = "Application";
terminal = false; terminal = false;
@ -215,9 +210,14 @@ in
X-GNOME-UsesNotifications = "true"; X-GNOME-UsesNotifications = "true";
}; };
actions = { actions = {
regular = { broken = {
name = "Lutris (Gamescope BROKEN)"; name = "Lutris (Gamescope BROKEN)";
exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen --expose-wayland" ${lib.getExe pkgs.lutris} %U''; exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.lutris}'';
};
broken-exposed = {
name = "Lutris (Gamescope BROKEN; Exposed Wayland)";
exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen --expose-wayland" ${lib.getExe pkgs.lutris}'';
}; };
}; };
}; };