From 36f5b8c15f9ba09a99d4eefa6079bb6352af8369 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 28 Jan 2025 15:28:44 -0600 Subject: [PATCH] niri: add window rules for 1password quick access Signed-off-by: Myned --- options/custom/desktops/niri/rules.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/options/custom/desktops/niri/rules.nix b/options/custom/desktops/niri/rules.nix index 8246356..6bd5260 100644 --- a/options/custom/desktops/niri/rules.nix +++ b/options/custom/desktops/niri/rules.nix @@ -203,6 +203,21 @@ in { } ### Overrides + # TODO: Remove when switching 1Password to Wayland + (let + height = builtins.floor (config.custom.height / config.custom.scale * 0.4); # 40% + in { + matches = [ + { + app-id = "^1Password"; + title = "^Quick Access — 1Password$"; + } + ]; + + max-height = height; + min-height = height; + open-floating = true; + }) ]; }; }