1
0
forked from extern/nix-config
donovanglover-nix-config/hyprland/.config/hypr/gamemode.sh
2023-05-02 21:51:11 -04:00

17 lines
568 B
Bash
Executable File

#!/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