attempt to improve system startup times

This commit is contained in:
2025-05-05 16:21:01 +03:00
parent 4d7a397e3d
commit 259d0431f9
10 changed files with 68 additions and 45 deletions

View File

@@ -1,23 +1,23 @@
# run roblox in fullscreen with mouse sensitivity of the os default and not some value set by roblox
#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
HYPRGAMEMODE=$(pidof waybar | awk 'NR>=1{print 1}') # $(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\
keyword decoration:blur:enabled 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 0;\
keyword decoration:rounding 0;\
keyword decoration:active_opacity 1;\
keyword decoration:inactive_opacity 1;\
keyword decoration:fullscreen_opacity 1;"
# hyprctl --batch "\
# keyword animations:enabled 0;\
# keyword decoration:drop_shadow 0;\
# keyword decoration:blur:enabled 0;\
# keyword general:gaps_in 0;\
# keyword general:gaps_out 0;\
# keyword general:border_size 0;\
# keyword decoration:rounding 0;\
# keyword decoration:active_opacity 1;\
# keyword decoration:inactive_opacity 1;\
# keyword decoration:fullscreen_opacity 1;"
notify-send -t 5000 -u critical "OCbwoy3's Dotfiles" "Enabled game mode"
pkill -9 waybar
exit
fi
bash ~/config/scripts/hot-reload.sh
# hyprctl reload
notify-send -t 5000 -u critical "OCbwoy3's Dotfiles" "Disabled game mode"
notify-send -t 5000 -u critical "OCbwoy3's Dotfiles" "Disabled game mode"