From a2d51e36252f09f37629cc4c4824983a074dad63 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 15:10:56 +0100 Subject: [PATCH] hyprland: actually enable the floating-window snap (the previous commit ended up just toggling blur back on) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the general.snap block — alignment snap to screen edges and other floating windows with a 10px gap. Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 8fe662a..e8f6b9f 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -113,6 +113,15 @@ border_size = 2; layout = "dwindle"; resize_on_border = true; + + # Snap floating windows when dragged near each other or screen + # edges. Alignment-snap only — not Aero-style "drag to top to + # maximize". + snap = { + enabled = true; + window_gap = 10; + monitor_gap = 10; + }; }; decoration = {