Odin: Gamescope display index
This commit is contained in:
parent
38bef82109
commit
6193b30c7e
1 changed files with 40 additions and 38 deletions
|
|
@ -80,46 +80,48 @@ in
|
|||
gamescope = { enable = true; capSysNice = true; };
|
||||
steam.gamescopeSession.enable = true;
|
||||
};
|
||||
# services.getty.autologinUser = "tiziano";
|
||||
# environment = {
|
||||
# systemPackages = [ pkgs.mangohud ];
|
||||
# loginShellInit =
|
||||
# let
|
||||
# gs = pkgs.writeShellScript "gamescope-init" ''
|
||||
# set -xeuo pipefail
|
||||
services.getty.autologinUser = "tiziano";
|
||||
environment = {
|
||||
systemPackages = [ pkgs.mangohud ];
|
||||
loginShellInit =
|
||||
let
|
||||
gs = pkgs.writeShellScript "gamescope-init" ''
|
||||
set -xeuo pipefail
|
||||
|
||||
# gamescopeArgs=(
|
||||
# --adaptive-sync # VRR support
|
||||
# --hdr-enabled
|
||||
# --mangoapp # performance overlay
|
||||
# --rt
|
||||
# --steam
|
||||
# # -O
|
||||
# # card1-HDMI-A-3
|
||||
# )
|
||||
# steamArgs=(
|
||||
# -pipewire-dmabuf
|
||||
# -tenfoot
|
||||
# )
|
||||
# mangoConfig=(
|
||||
# cpu_temp
|
||||
# gpu_temp
|
||||
# ram
|
||||
# vram
|
||||
# )
|
||||
# mangoVars=(
|
||||
# MANGOHUD=1
|
||||
# MANGOHUD_CONFIG="$(IFS=,; echo "''${mangoConfig[*]}")"
|
||||
# )
|
||||
gamescopeArgs=(
|
||||
--adaptive-sync # VRR support
|
||||
--hdr-enabled
|
||||
--mangoapp # performance overlay
|
||||
--rt
|
||||
--steam
|
||||
--display-index
|
||||
2
|
||||
# -O
|
||||
# card1-HDMI-A-3
|
||||
)
|
||||
steamArgs=(
|
||||
-pipewire-dmabuf
|
||||
-tenfoot
|
||||
)
|
||||
mangoConfig=(
|
||||
cpu_temp
|
||||
gpu_temp
|
||||
ram
|
||||
vram
|
||||
)
|
||||
mangoVars=(
|
||||
MANGOHUD=1
|
||||
MANGOHUD_CONFIG="$(IFS=,; echo "''${mangoConfig[*]}")"
|
||||
)
|
||||
|
||||
# export "''${mangoVars[@]}"
|
||||
# exec gamescope "''${gamescopeArgs[@]}" -- steam "''${steamArgs[@]}"
|
||||
# '';
|
||||
# in
|
||||
# ''
|
||||
# [[ "$(tty)" = "/dev/tty1" ]] && ${gs}
|
||||
# '';
|
||||
# };
|
||||
export "''${mangoVars[@]}"
|
||||
exec gamescope "''${gamescopeArgs[@]}" -- steam "''${steamArgs[@]}"
|
||||
'';
|
||||
in
|
||||
''
|
||||
[[ "$(tty)" = "/dev/tty1" ]] && ${gs}
|
||||
'';
|
||||
};
|
||||
|
||||
services = {
|
||||
avahi = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue