From b130b973ce9e62263160485638abc457a8837410 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 27 Apr 2025 16:16:27 -0400 Subject: [PATCH] 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 --- README.org | 15 +++++++++++++++ gaming/.scripts/game_exit.sh | 4 ++++ gaming/.scripts/game_launch.sh | 11 +++++++++++ hyprland/.config/hypr | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index f377a04..d0200e5 100644 --- a/README.org +++ b/README.org @@ -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 & diff --git a/gaming/.scripts/game_exit.sh b/gaming/.scripts/game_exit.sh index 26a39e0..f7562f0 100755 --- a/gaming/.scripts/game_exit.sh +++ b/gaming/.scripts/game_exit.sh @@ -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 & diff --git a/gaming/.scripts/game_launch.sh b/gaming/.scripts/game_launch.sh index 7ebab5b..d3332b3 100755 --- a/gaming/.scripts/game_launch.sh +++ b/gaming/.scripts/game_launch.sh @@ -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 & diff --git a/hyprland/.config/hypr b/hyprland/.config/hypr index 2c5b298..81c5a49 160000 --- a/hyprland/.config/hypr +++ b/hyprland/.config/hypr @@ -1 +1 @@ -Subproject commit 2c5b298ace1c1a02f3ed9ba8610ad69f4aca54ee +Subproject commit 81c5a4981743017232abdf667370488b92c03887