improved gamescope.sh

This commit is contained in:
2024-11-19 19:56:47 -05:00
parent 8af120b6cf
commit 3582f3c50b
3 changed files with 17 additions and 6 deletions

View File

@@ -36,8 +36,7 @@
services = { services = {
getty = { getty = {
loginProgram = ./gs.sh; loginProgram = ./gamescope.sh;
# loginOptions = "${pkgs.steam}/bin/steam -bigpicture";
autologinUser = "gaming"; autologinUser = "gaming";
}; };

16
systems/muninn/gamescope.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -xeuo pipefail
gamescopeArgs=(
--adaptive-sync # VRR support
--hdr-enabled
--rt
--steam
)
steamArgs=(
-pipewire-dmabuf
-tenfoot
)
exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}"

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -xeuo pipefail
exec gamescope --adaptive-sync --hdr-enabled --rt --steam -- steam -pipewire-dmabuf -tenfoot