summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config/hypr/hyprland.conf
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-25 17:25:03 -0600
committerCraig Jennings <c@cjennings.net>2026-02-25 17:25:03 -0600
commitf134d71121a9edabe9f3e9383cbfeea5f33e1550 (patch)
tree0d4e443f03ecd775384f106635b3a8d25acdde7f /dotfiles/hyprland/.config/hypr/hyprland.conf
parent5fc7688def16f8e8c3f4470c2a85f4cfd5b2dd42 (diff)
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.
Diffstat (limited to 'dotfiles/hyprland/.config/hypr/hyprland.conf')
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf8
1 files changed, 8 insertions, 0 deletions
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