From dbbf47d430425a78421d6b12cfb2f9ebe3dd55b1 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 17 Dec 2024 13:31:03 +0000 Subject: [PATCH] home-manager/hyrpland: upstream deprecated no_gaps_when_only --- home-manager/desktop/wayland/hyprland/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/home-manager/desktop/wayland/hyprland/default.nix b/home-manager/desktop/wayland/hyprland/default.nix index e2310016..20402c90 100644 --- a/home-manager/desktop/wayland/hyprland/default.nix +++ b/home-manager/desktop/wayland/hyprland/default.nix @@ -84,7 +84,6 @@ in }; master = { allow_small_split = true; - no_gaps_when_only = 1; }; input = let @@ -266,7 +265,21 @@ in ", XF86AudioPrev, exec, ${playerctl} previous" ]; + workspace = [ + # smart_gaps / no_gaps_when_only + "w[t1], gapsout:0, gapsin:0" + "w[tg1], gapsout:0, gapsin:0" + "f[1], gapsout:0, gapsin:0" + ]; + windowrulev2 = [ + # smart_gaps / no_gaps_when_only + "bordersize 0, floating:0, onworkspace:w[t1]" + "rounding 0, floating:0, onworkspace:w[t1]" + "bordersize 0, floating:0, onworkspace:w[tg1]" + "rounding 0, floating:0, onworkspace:w[tg1]" + "bordersize 0, floating:0, onworkspace:f[1]" + "rounding 0, floating:0, onworkspace:f[1]" # Ignore maximize events "suppressevent maximize, class:.*" # Fix download/save image windows in Firefox