aboutsummaryrefslogtreecommitdiff
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
commit7722989f100f72dff647ef6dac2149bb8dc3bb9c (patch)
tree0d4e443f03ecd775384f106635b3a8d25acdde7f
parentb1fdbcb04f63dcb21669226cc0fb60bd01e63d13 (diff)
downloadarchsetup-7722989f100f72dff647ef6dac2149bb8dc3bb9c.tar.gz
archsetup-7722989f100f72dff647ef6dac2149bb8dc3bb9c.zip
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.
-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