Update the script.
This commit is contained in:
parent
829052147b
commit
8d19009dd7
@ -23,9 +23,9 @@ x11_off () {
|
|||||||
# start-program polybar top -r
|
# start-program polybar top -r
|
||||||
start-program xmobar ~/.config/xmobar/xmobarrc
|
start-program xmobar ~/.config/xmobar/xmobarrc
|
||||||
start-program unclutter --timeout 5
|
start-program unclutter --timeout 5
|
||||||
xrandr --output eDP --set TearFree on
|
toggle-xrandr on
|
||||||
sleep 2
|
sleep 2
|
||||||
start-program trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l
|
start-program trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 24 -l
|
||||||
}
|
}
|
||||||
|
|
||||||
x11_on () {
|
x11_on () {
|
||||||
@ -34,14 +34,13 @@ x11_on () {
|
|||||||
kill-nicely xmobar
|
kill-nicely xmobar
|
||||||
kill-nicely trayer-srg
|
kill-nicely trayer-srg
|
||||||
kill-nicely unclutter
|
kill-nicely unclutter
|
||||||
xrandr --output eDP --set TearFree off
|
toggle-xrandr off
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f "$HOME"/.cache/gaming.lock ]; then
|
if [ -f "$HOME"/.cache/gaming.lock ]; then
|
||||||
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_off || x11_off
|
[ "$XDG_SESSION_TYPE" = "wayland" ] && wayland_off || x11_off
|
||||||
start-program transmission-daemon
|
start-program transmission-daemon
|
||||||
start-program syncthing
|
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"
|
quick-notify "Gaming Time" "OFF"
|
||||||
else
|
else
|
||||||
@ -49,7 +48,6 @@ else
|
|||||||
transmission-remote --exit
|
transmission-remote --exit
|
||||||
syncthing cli operations shutdown
|
syncthing cli operations shutdown
|
||||||
kill-nicely ferdium
|
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"
|
quick-notify "Gaming Time" "ON"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user