refactored hyprland conf for better maintainability

This commit is contained in:
2025-08-01 10:03:02 +02:00
parent bab1718ea5
commit bc2cabece3
11 changed files with 263 additions and 406 deletions

14
hypr/scripts/gamemode.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/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 general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload