Update gaming optimization script.
This commit is contained in:
parent
6a9a9dd8d4
commit
bb0e48b95e
10
gaming-time
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user