From d03db1a1b69f43ba38917eeb41587fa88d11bf08 Mon Sep 17 00:00:00 2001 From: "thomas g. lopes" Date: Mon, 9 Mar 2026 16:28:46 +0000 Subject: [PATCH] fix handy positioning --- niri/files/config.kdl | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/niri/files/config.kdl b/niri/files/config.kdl index 4a836f8..a1da104 100644 --- a/niri/files/config.kdl +++ b/niri/files/config.kdl @@ -186,7 +186,7 @@ window-rule { default-column-width {} } -// Open the Firefox picture-in-picture player as floating by default. +// Open the Firefox picture-in-Picture player as floating by default. window-rule { // This app-id regular expression will work for both: // - host Firefox (app-id is "firefox") @@ -195,6 +195,26 @@ window-rule { open-floating true } +// Handy overlay: don't focus it and remove niri decorations. +window-rule { + match app-id=r#"(?i)^handy$"# + open-floating true + open-focused false + default-floating-position x=120 y=-160 relative-to="bottom" + draw-border-with-background false + focus-ring { + off + } + border { + off + } + shadow { + off + } + geometry-corner-radius 0 + clip-to-geometry false +} + // Do the same for Zen Browser. window-rule { match app-id=r#"zen$"# title="^Picture-in-Picture$"