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
|
# 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,76 +150,76 @@ in
|
||||||
lutris-wrapper
|
lutris-wrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.desktopEntries =
|
xdg.desktopEntries = {
|
||||||
let
|
steam = {
|
||||||
steamBigPictureCmd = ''${lib.getExe gamescope-run} -x "-e" ${lib.getExe pkgs.steam} -tenfoot -steamdeck'';
|
name = "Steam";
|
||||||
heroicGamescopeCmd = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.heroic}'';
|
comment = "Steam Big Picture in Gamescope Session";
|
||||||
in
|
exec = "${lib.getExe steam-wrapper}";
|
||||||
{
|
icon = "steam";
|
||||||
steam = {
|
type = "Application";
|
||||||
name = "Steam";
|
terminal = false;
|
||||||
comment = "Steam Big Picture in Gamescope Session";
|
categories = [ "Game" ];
|
||||||
exec = steamBigPictureCmd;
|
mimeType = [
|
||||||
icon = "steam";
|
"x-scheme-handler/steam"
|
||||||
type = "Application";
|
"x-scheme-handler/steamlink"
|
||||||
terminal = false;
|
];
|
||||||
categories = [ "Game" ];
|
settings = {
|
||||||
mimeType = [
|
StartupNotify = "true";
|
||||||
"x-scheme-handler/steam"
|
StartupWMClass = "Steam";
|
||||||
"x-scheme-handler/steamlink"
|
PrefersNonDefaultGPU = "true";
|
||||||
];
|
X-KDE-RunOnDiscreteGpu = "true";
|
||||||
settings = {
|
Keywords = "gaming;";
|
||||||
StartupNotify = "true";
|
|
||||||
StartupWMClass = "Steam";
|
|
||||||
PrefersNonDefaultGPU = "true";
|
|
||||||
X-KDE-RunOnDiscreteGpu = "true";
|
|
||||||
Keywords = "gaming;";
|
|
||||||
};
|
|
||||||
actions = {
|
|
||||||
bigpicture = {
|
|
||||||
name = "Steam Client (No Gamescope)";
|
|
||||||
exec = "${lib.getExe pkgs.steam}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
actions = {
|
||||||
"com.heroicgameslauncher.hgl" = {
|
bigpicture = {
|
||||||
name = "Heroic Games Launcher";
|
name = "Steam Client (No Gamescope)";
|
||||||
comment = "Heroic in Gamescope Session";
|
exec = "${lib.getExe pkgs.steam}";
|
||||||
exec = heroicGamescopeCmd;
|
|
||||||
icon = "com.heroicgameslauncher.hgl";
|
|
||||||
type = "Application";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Game" ];
|
|
||||||
actions = {
|
|
||||||
regular = {
|
|
||||||
name = "Heroic (No Gamescope)";
|
|
||||||
exec = "${lib.getExe pkgs.heroic}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"net.lutris.Lutris" = {
|
|
||||||
name = "Lutris";
|
|
||||||
comment = "Video Game Preservation Platform";
|
|
||||||
exec = "${lib.getExe pkgs.lutris} %U";
|
|
||||||
icon = "net.lutris.Lutris";
|
|
||||||
type = "Application";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Game" ];
|
|
||||||
mimeType = [ "x-scheme-handler/lutris" ];
|
|
||||||
settings = {
|
|
||||||
StartupNotify = "true";
|
|
||||||
StartupWMClass = "Lutris";
|
|
||||||
Keywords = "gaming;wine;emulator;";
|
|
||||||
X-GNOME-UsesNotifications = "true";
|
|
||||||
};
|
|
||||||
actions = {
|
|
||||||
regular = {
|
|
||||||
name = "Lutris (Gamescope BROKEN)";
|
|
||||||
exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen --expose-wayland" ${lib.getExe pkgs.lutris} %U'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"com.heroicgameslauncher.hgl" = {
|
||||||
|
name = "Heroic Games Launcher";
|
||||||
|
comment = "Heroic in Gamescope Session";
|
||||||
|
exec = ''${lib.getExe gamescope-run} -x "--force-windows-fullscreen" ${lib.getExe pkgs.heroic}'';
|
||||||
|
icon = "com.heroicgameslauncher.hgl";
|
||||||
|
type = "Application";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Game" ];
|
||||||
|
actions = {
|
||||||
|
regular = {
|
||||||
|
name = "Heroic (No Gamescope)";
|
||||||
|
exec = "${lib.getExe pkgs.heroic}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"net.lutris.Lutris" = {
|
||||||
|
name = "Lutris";
|
||||||
|
comment = "Video Game Preservation Platform";
|
||||||
|
exec = "${lib.getExe pkgs.lutris} %U";
|
||||||
|
icon = "net.lutris.Lutris";
|
||||||
|
type = "Application";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Game" ];
|
||||||
|
mimeType = [ "x-scheme-handler/lutris" ];
|
||||||
|
settings = {
|
||||||
|
StartupNotify = "true";
|
||||||
|
StartupWMClass = "Lutris";
|
||||||
|
Keywords = "gaming;wine;emulator;";
|
||||||
|
X-GNOME-UsesNotifications = "true";
|
||||||
|
};
|
||||||
|
actions = {
|
||||||
|
broken = {
|
||||||
|
name = "Lutris (Gamescope BROKEN)";
|
||||||
|
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