aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-08-29 09:18:52 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:41:57 -0700
commita6fc2aec006e7c860c179d8d2d0a72e54c7b0292 (patch)
tree8867f179a98d41069bb95e9f75295be9fa33f2a5 /config
parent98d7686833e5ede0bde8a34f809af6aa66263f7d (diff)
Fixed GameMode disable not restoring decorations
Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/scripts/GameMode.sh
Diffstat (limited to 'config')
-rwxr-xr-xconfig/hypr/scripts/GameMode.sh28
1 files changed, 4 insertions, 24 deletions
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh
index c3a02948..b9692d98 100755
--- a/config/hypr/scripts/GameMode.sh
+++ b/config/hypr/scripts/GameMode.sh
@@ -57,27 +57,7 @@ if [ "$HYPRGAMEMODE" = "true" ] || [ "$HYPRGAMEMODE" = "1" ] ; then
exit
else
# DISABLE Game Mode (Restore animations/decorations)
- if [[ "$hypr_config_mode" == "lua" ]]; then
- # Explicitly restore to defaults (matching settings.lua where possible)
- hyprctl eval "hl.config({
- animations = { enabled = true },
- decoration = { shadow = { enabled = true }, blur = { enabled = true }, rounding = 10 },
- general = { gaps_in = 2, gaps_out = 4, border_size = 2 }
- })"
- # Removing rule in Lua mode might require a different approach if no 'remove' exists
- # We'll reload the config as a fallback or try to nullify it
- hyprctl eval "hl.window_rule({ name = 'gamemode-opacity', match = { class = 'NONE' }, opacity = 1.0 })"
- else
- hyprctl --batch "\
- keyword animations:enabled 1;\
- keyword decoration:shadow:enabled 1;\
- keyword decoration:blur:enabled 1;\
- keyword general:gaps_in 2;\
- keyword general:gaps_out 4;\
- keyword general:border_size 2;\
- keyword decoration:rounding 10"
- hyprctl keyword "windowrule opacity 1 override 1 override 1 override, ^(NONE)$"
- fi
+ hyprctl reload
# Restore wallpaper using the official daemon script
if [[ -x "${SCRIPTSDIR}/WallpaperDaemon.sh" ]]; then
@@ -85,14 +65,14 @@ else
fi
sleep 0.1
- ${SCRIPTSDIR}/WallustSwww.sh
+ if [[ -x "${SCRIPTSDIR}/WallustSwww.sh" ]]; then
+ "${SCRIPTSDIR}/WallustSwww.sh"
+ fi
sleep 0.5
# Refresh UI components
if [[ -x "${SCRIPTSDIR}/Refresh.sh" ]]; then
"${SCRIPTSDIR}/Refresh.sh"
- else
- hyprctl reload
fi
notify-send -e -u normal -i "$notif" " Gamemode:" " disabled"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage