Files
dotfiles/hypr/scripts/gamemode.sh
Nikolai Papin 4e688c7c83 feat: autofreeze script for swww when window is selected + a toggle;
refactor: cpufreq does not save notifications anymore;
feat: 3GHz option for cpufreq;
feat: Script for controlling power profile + bind;
refactor: removed hyprpaper, replaced with swww;
refactor: no longer affecting border radius in gamemode;
fix: grayscale filter;
feat: toggle automatic wallpaper switching;
2025-10-05 15:29:30 +03:00

12 lines
357 B
Bash
Executable File

#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:shadow:enabled 0;\
keyword decoration:blur:enabled 0;\
keyword plugin:hyprfocus:fade_opacity 1"
exit
fi
hyprctl reload