Disable animations/blur/etc. when gaming on Hyprland

- Add hyprctl command to disable animations/blur/etc. when
  launching a game on Hyprland
- Add hyprctl command to reload config when exiting
  a game on Hyprland
- Update hyprland submodule
This commit is contained in:
Sravan Balaji
2025-04-27 16:16:27 -04:00
parent 39f61a613e
commit b130b973ce
4 changed files with 31 additions and 1 deletions

View File

@@ -8069,6 +8069,17 @@ if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &
fi
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; 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" &
fi
$HOME/.scripts/cpu-gpu.sh --cpu-profile-performance &
$HOME/.scripts/cpu-gpu.sh --gpu-profile-performance &
$HOME/.scripts/dunst.sh --pause &
@@ -8084,6 +8095,10 @@ if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &
fi
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; then
hyprctl reload &
fi
$HOME/.scripts/dunst.sh --unpause &
$HOME/.scripts/cpu-gpu.sh --cpu-profile-balanced &
$HOME/.scripts/cpu-gpu.sh --gpu-profile-adaptive &

View File

@@ -4,6 +4,10 @@ if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &
fi
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; then
hyprctl reload &
fi
$HOME/.scripts/dunst.sh --unpause &
$HOME/.scripts/cpu-gpu.sh --cpu-profile-balanced &
$HOME/.scripts/cpu-gpu.sh --gpu-profile-adaptive &

View File

@@ -4,6 +4,17 @@ if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &
fi
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; 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" &
fi
$HOME/.scripts/cpu-gpu.sh --cpu-profile-performance &
$HOME/.scripts/cpu-gpu.sh --gpu-profile-performance &
$HOME/.scripts/dunst.sh --pause &