Removed -steamdeck flag in steam; Small code refactors/cleaning
This commit is contained in:
parent
4ec5bc09c5
commit
59e9543f3f
1 changed files with 69 additions and 69 deletions
|
@ -130,7 +130,7 @@ let
|
|||
# This script wraps the original steam command to launch it
|
||||
# with gamescope-run in a big picture mode.
|
||||
# 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
|
||||
|
@ -150,16 +150,11 @@ in
|
|||
lutris-wrapper
|
||||
];
|
||||
|
||||
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
|
||||
{
|
||||
xdg.desktopEntries = {
|
||||
steam = {
|
||||
name = "Steam";
|
||||
comment = "Steam Big Picture in Gamescope Session";
|
||||
exec = steamBigPictureCmd;
|
||||
exec = "${lib.getExe steam-wrapper}";
|
||||
icon = "steam";
|
||||
type = "Application";
|
||||
terminal = false;
|
||||
|
@ -186,7 +181,7 @@ in
|
|||
"com.heroicgameslauncher.hgl" = {
|
||||
name = "Heroic Games Launcher";
|
||||
comment = "Heroic in Gamescope Session";
|
||||
exec = heroicGamescopeCmd;
|
||||
exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.heroic}'';
|
||||
icon = "com.heroicgameslauncher.hgl";
|
||||
type = "Application";
|
||||
terminal = false;
|
||||
|
@ -215,9 +210,14 @@ in
|
|||
X-GNOME-UsesNotifications = "true";
|
||||
};
|
||||
actions = {
|
||||
regular = {
|
||||
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}'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue