From f134d71121a9edabe9f3e9383cbfeea5f33e1550 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 25 Feb 2026 17:25:03 -0600 Subject: fix(hyprland): re-center scratchpad windows on togglefloating Scratchpad windows stayed at their tiled position when returned to floating via shift+mod+space. Add center windowrules so all pyprland scratchpads snap back to center whenever they become floating. --- dotfiles/hyprland/.config/hypr/hyprland.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dotfiles/hyprland/.config/hypr/hyprland.conf') diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf index e03e18e..f31e110 100644 --- a/dotfiles/hyprland/.config/hypr/hyprland.conf +++ b/dotfiles/hyprland/.config/hypr/hyprland.conf @@ -153,6 +153,14 @@ windowrule = match:class ^(Blueman-manager)$, float on windowrule = match:class ^(qalculate-gtk)$, float on windowrule = match:title ^(Event Tester)$, float on +# Re-center scratchpad windows when returned to floating via togglefloating +windowrule = match:class ^(foot-term)$ floating:1, center on +windowrule = match:class ^(foot-ai-term)$ floating:1, center on +windowrule = match:class ^(foot-audio)$ floating:1, center on +windowrule = match:class ^(foot-monitor)$ floating:1, center on +windowrule = match:class ^(foot-music)$ floating:1, center on +windowrule = match:class ^(foot-network)$ floating:1, center on + # Gaming windowrule = match:class ^(Civ5XP)$, fullscreen on -- cgit v1.2.3