From 166c35caec73aa884f296dd1cfd674f6af3130c5 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 17 Apr 2026 12:46:00 +0200 Subject: [PATCH] Modules/Niri: Configure default floating window sizes for eyedropper + junction --- home/homemodules/niri/default.nix | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/home/homemodules/niri/default.nix b/home/homemodules/niri/default.nix index b8c43fe9..8f801d3d 100644 --- a/home/homemodules/niri/default.nix +++ b/home/homemodules/niri/default.nix @@ -583,9 +583,35 @@ in { # Floating + unmaximized windows { - matches = [{app-id = "com.github.finefindus.eyedropper";}]; - open-floating = true; + matches = [ + {app-id = "com.github.finefindus.eyedropper";} + {app-id = "re.sonny.Junction";} + ]; + open-maximized = false; + open-floating = true; + + # default-floating-position = { + # x = 0; + # y = 0; + # relative-to = "center"; + # }; + } + + # Specific floating windows + { + matches = [ + {app-id = "re.sonny.Junction";} + ]; + default-column-width.fixed = 500; + default-window-height.fixed = 250; + } + { + matches = [ + {app-id = "com.github.finefindus.eyedropper";} + ]; + default-column-width.fixed = 250; + default-window-height.fixed = 500; } # Rules for specific windows