1
0
forked from extern/nix-config

hyprland: Add performance script from wiki

This commit is contained in:
Donovan Glover 2023-05-02 21:51:07 -04:00
parent b99d7f8395
commit 84b3bc37ee
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -0,0 +1,16 @@
#!/usr/bin/env sh
# NOTE: This script was taken from the Hyprland wiki
# TODO: Integrate hyprctl commands into your own workflow.
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '2p' | awk '{print $2}')
if [ $HYPRGAMEMODE = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\
keyword decoration:blur 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload