summaryrefslogtreecommitdiff
path: root/scripts/desktop/proton-env
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-02-28 14:49:37 -0500
committerAndrew Opalach <andrew@akon.city> 2026-02-28 14:49:37 -0500
commitef40a5119a77280863c21ba67397818514714ccc (patch)
tree8fbfa43e86f2594875bb7e415fee2ac0ecf35cda /scripts/desktop/proton-env
parent61c027738785e0585202b7b3a828e05344510f66 (diff)
downloaddotfiles-ef40a5119a77280863c21ba67397818514714ccc.tar.gz
dotfiles-ef40a5119a77280863c21ba67397818514714ccc.tar.bz2
dotfiles-ef40a5119a77280863c21ba67397818514714ccc.zip
Random stuff since last check in
Diffstat (limited to 'scripts/desktop/proton-env')
-rwxr-xr-xscripts/desktop/proton-env19
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/desktop/proton-env b/scripts/desktop/proton-env
index c228b24..3aa66e1 100755
--- a/scripts/desktop/proton-env
+++ b/scripts/desktop/proton-env
@@ -3,7 +3,9 @@
# https://gist.github.com/Kron4ek/af1bbc1353302751a0941308294ec24a
export STEAM_COMPAT_LAUNCHER_SERVICE=proton
+
export PROTON_USE_NTSYNC=1
+export PROTON_ENABLE_WAYLAND=1
export DXVK_HUD=compiler
export DXVK_LOG_LEVEL=none
@@ -15,15 +17,24 @@ export VKD3D_SHADER_DEBUG=none
unset SDL_VIDEODRIVER
unset SDL_VIDEO_DRIVER
+if [[ ! -z $DISPLAY_MODE_60HZ ]]; then
+ swaymsg "output $MAIN_MONITOR mode 2560x1440@60.000Hz"
+fi
+
xrandr --output $MAIN_MONITOR --primary
-scxctl start --sched bpfland --mode gaming
+scxctl start --sched lavd --mode gaming
-# LD_PRELOAD could disable steam overlay if the old value wasn't included.
if [[ $MANGOHUD == 1 || -z $MANGOHUD ]]; then
- env LD_PRELOAD="$LD_PRELOAD:/usr/lib64/libgamemodeauto.so" mangohud "$@"
+ # If the old LD_PRELOAD isn't included steam overlay will be disabled. Lag bomb still an issue?
+ #env LD_PRELOAD="$LD_PRELOAD:/usr/lib64/libgamemodeauto.so" mangohud "$@"
+ env LD_PRELOAD="/usr/lib64/libgamemodeauto.so" mangohud "$@"
else
- env LD_PRELOAD="$LD_PRELOAD:/usr/lib64/libgamemodeauto.so" "$@"
+ env LD_PRELOAD="/usr/lib64/libgamemodeauto.so" "$@"
fi
scxctl stop
+
+if [[ ! -z $DISPLAY_MODE_60HZ ]]; then
+ swaymsg "output $MAIN_MONITOR mode 2560x1440@144.000Hz"
+fi