mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-14 07:58:26 +02:00
feat: SteamOS conversion on NVIDIA with a patched gamescope (GBM scan-out)
The conversion is offered on supported NVIDIA cards again; it builds and installs steamify-gamescope-nvidia and sets gamescope_drm_gbm_scanout=1. It and Gaming on NVIDIA exclude each other.
This commit is contained in:
1 parent
4461447ded
commit
d1758ac5eb
9 files changed
+124
-14
No files matched your search
+9
-2
@@ -78,14 +78,21 @@ Item {
|
||||
w[id] = !w[id];
|
||||
// The same rules as the terminal menu (toggle_component).
|
||||
var hasGaming = items.some(function (i) { return i.id === "gaming"; });
|
||||
if (id === "gaming" && !w.gaming) { w.single = false; w.silent = false; w.glyphs = false; }
|
||||
if (id === "single" && w.single && hasGaming) w.gaming = true;
|
||||
var hasNvidia = items.some(function (i) { return i.id === "nvidia"; });
|
||||
// Single user mode works without the conversion on NVIDIA PCs.
|
||||
if (id === "gaming" && !w.gaming) { if (!hasNvidia) w.single = false; w.silent = false; w.glyphs = false; }
|
||||
if (id === "single" && w.single && hasGaming && !hasNvidia) w.gaming = true;
|
||||
if (id === "nvidia") w.bigpicture = w.nvidia;
|
||||
if (id === "bigpicture" && w.bigpicture) { w.nvidia = true; w.nvsilent = false; }
|
||||
if (id === "nvsilent" && w.nvsilent) { w.nvidia = true; w.bigpicture = false; }
|
||||
if (id === "nvidia" && !w.nvidia) w.nvsilent = false;
|
||||
if (id === "silent" && w.silent) w.gaming = true;
|
||||
if (id === "glyphs" && w.glyphs) w.gaming = true;
|
||||
// On NVIDIA the conversion and "Gaming on NVIDIA" exclude each other (both would start Steam at login).
|
||||
if (hasGaming && hasNvidia) {
|
||||
if (id === "nvidia" && w.nvidia) { w.gaming = false; w.silent = false; w.glyphs = false; }
|
||||
else if ((id === "gaming" || id === "silent" || id === "glyphs") && w[id] && w.gaming) { w.nvidia = false; w.bigpicture = false; w.nvsilent = false; }
|
||||
}
|
||||
if (id === "machine") w.poweroff = w.machine;
|
||||
if (id === "poweroff" && w.poweroff) w.machine = true;
|
||||
if (id === "machine" && !w.machine) w.kpin = false;
|
||||
|
||||
Reference in new issue
Block a user