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