summaryrefslogtreecommitdiff
path: root/scripts/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop')
-rwxr-xr-xscripts/desktop/proton-env19
-rwxr-xr-xscripts/desktop/proton-env3214
-rwxr-xr-xscripts/desktop/term-font-size2
3 files changed, 26 insertions, 9 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
diff --git a/scripts/desktop/proton-env32 b/scripts/desktop/proton-env32
index 889c105..b6d2ebc 100755
--- a/scripts/desktop/proton-env32
+++ b/scripts/desktop/proton-env32
@@ -2,11 +2,13 @@
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
export DXVK_DEBUG=none
-export VKD3D_HUD=compiler
export VKD3D_DEBUG=none
export VKD3D_SHADER_DEBUG=none
@@ -15,9 +17,13 @@ unset SDL_VIDEO_DRIVER
xrandr --output $MAIN_MONITOR --primary
+scxctl start --sched lavd --mode gaming
+
if [[ $MANGOHUD == 1 || -z $MANGOHUD ]]; then
- exec env LD_PRELOAD="/usr/lib/libgamemodeauto.so" mangohud "$@"
- #exec env LD_PRELOAD="/usr/lib/libgamemodeauto.so:/usr/lib/libMangoHud.so:/usr/lib/libMangoHud_opengl.so" mangohud "$@"
+ #env LD_PRELOAD="$LD_PRELOAD:/usr/lib/libgamemodeauto.so" mangohud "$@"
+ env LD_PRELOAD="/usr/lib/libgamemodeauto.so:/usr/lib/libMangoHud.so:/usr/lib/libMangoHud_opengl.so" mangohud "$@"
else
- exec env LD_PRELOAD="/usr/lib/libgamemodeauto.so" "$@"
+ env LD_PRELOAD="/usr/lib/libgamemodeauto.so" "$@"
fi
+
+scxctl stop
diff --git a/scripts/desktop/term-font-size b/scripts/desktop/term-font-size
index 0637b12..6f947b7 100755
--- a/scripts/desktop/term-font-size
+++ b/scripts/desktop/term-font-size
@@ -17,4 +17,4 @@ x_px, y_px = get_term_res()
size = get_term_dimensions()
x_cell, y_cell = size.columns, size.lines
-print('width : {}, height: {}'.format(x_px / float(x_cell), y_px / float(y_cell)))
+print('width: {}, height: {}'.format(x_px / float(x_cell), y_px / float(y_cell)))