forked from extern/nix-config
hyprland: Add performance script from wiki
This commit is contained in:
parent
b99d7f8395
commit
84b3bc37ee
16
hyprland/.config/hypr/gamemode.sh
Executable file
16
hyprland/.config/hypr/gamemode.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user