Skip to content
22 changes: 2 additions & 20 deletions Configs/.local/lib/hyde/gamemode.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
#!/usr/bin/env bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use hyprctl for this. Sorry for the misunderstanding. Thanks!

HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '1p' | awk '{print $2}')
if [ "$HYPRGAMEMODE" = 1 ]; then
hyprctl -q --batch "\
keyword animations:enabled 0;\
keyword decoration:shadow:enabled 0;\
keyword decoration:blur:xray 1;\
keyword decoration:blur:enabled 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0 ;\
keyword decoration:active_opacity 1 ;\
keyword decoration:inactive_opacity 1 ;\
keyword decoration:fullscreen_opacity 1 ;\
keyword layerrule noanim,waybar ;\
keyword layerrule noanim,swaync-notification-window ;\
keyword layerrule noanim,swww-daemon ;\
keyword layerrule noanim,rofi
"
hyprctl 'keyword windowrule opaque,class:(.*)'
exit
hyde-shell workflows --set gaming
else
hyprctl reload config-only -q
hyde-shell workflows --set default
fi