From d50eef366260acc87ba85d10dbcdccbe2b5514f1 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Tue, 19 Nov 2024 19:56:47 -0500 Subject: [PATCH] improved gamescope.sh --- systems/muninn/default.nix | 3 +-- systems/muninn/gamescope.sh | 16 ++++++++++++++++ systems/muninn/gs.sh | 4 ---- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100755 systems/muninn/gamescope.sh delete mode 100644 systems/muninn/gs.sh diff --git a/systems/muninn/default.nix b/systems/muninn/default.nix index d564436..0dd64a4 100644 --- a/systems/muninn/default.nix +++ b/systems/muninn/default.nix @@ -35,8 +35,7 @@ services = { getty = { - loginProgram = ./gs.sh; - # loginOptions = "${pkgs.steam}/bin/steam -bigpicture"; + loginProgram = ./gamescope.sh; autologinUser = "gaming"; }; diff --git a/systems/muninn/gamescope.sh b/systems/muninn/gamescope.sh new file mode 100755 index 0000000..10349cd --- /dev/null +++ b/systems/muninn/gamescope.sh @@ -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[@]}" diff --git a/systems/muninn/gs.sh b/systems/muninn/gs.sh deleted file mode 100644 index 63d9766..0000000 --- a/systems/muninn/gs.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -xeuo pipefail - -exec gamescope --adaptive-sync --hdr-enabled --rt --steam -- steam -pipewire-dmabuf -tenfoot \ No newline at end of file