From bb0e48b95e434ab60416171ca4227766c9b44610 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sun, 10 Dec 2023 18:49:23 +0100 Subject: [PATCH] Update gaming optimization script. --- gaming-time | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gaming-time b/gaming-time index e6cfa85..52879ef 100755 --- a/gaming-time +++ b/gaming-time @@ -37,19 +37,19 @@ x11_on () { xrandr --output eDP --set TearFree off } -if [ -f $HOME/.cache/gaming.lock ]; then - [ $XDG_SESSION_TYPE = "wayland" ] && wayland_off || x11_off +if [ -f "$HOME"/.cache/gaming.lock ]; then + [ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_off || x11_off start-program transmission-daemon start-program syncthing nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' - rm $HOME/.cache/gaming.lock + rm "$HOME"/.cache/gaming.lock quick-notify "Gaming Time" "OFF" else - [ $XDG_SESSION_TYPE = "wayland" ] && wayland_on || x11_on + [ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_on || x11_on transmission-remote --exit syncthing cli operations shutdown kill-nicely ferdium nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1' - touch $HOME/.cache/gaming.lock + touch "$HOME"/.cache/gaming.lock quick-notify "Gaming Time" "ON" fi