From 1c1d8f622666c8ae3643b283ac979396ff116cee Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Sat, 14 Mar 2026 12:40:57 +0100 Subject: Add windowing rules for floating windows --- config/niri/config.kdl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 175604a..6cf18fc 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -316,6 +316,11 @@ window-rule { open-floating true } +window-rule { + match app-id=r#"^REAPER$"# title=r#"^menu$"# + open-floating true +} + window-rule { match app-id=r#"it.mijorus.smile"# open-floating true @@ -336,6 +341,14 @@ window-rule { block-out-from "screen-capture" } +window-rule { + match title=r#"^Picture-in-Picture$"# app-id=r#"^librewolf$"# + open-floating true + default-column-width { proportion 0.25; } + default-window-height { proportion 0.25; } + default-floating-position x=32 y=32 relative-to="top-left" +} + // Example: block out two password managers from screen capture. // (This example rule is commented out with a "/-" in front.) /-window-rule { @@ -372,7 +385,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return hotkey-overlay-title="Open Terminal (kitty)" { spawn "kitty"; } - Mod+Space hotkey-overlay-title="Open Launcher (Desktop)" { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";} + Mod+Space hotkey-overlay-title="Open Launcher (Desktop)" { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";} Mod+Shift+Space hotkey-overlay-title="Open Launcher (Terminal)" { spawn "bemenu-run" "--single-instance" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";} Mod+Alt+L hotkey-overlay-title="Lock Screen" { spawn "swaylock"; } Mod+Ctrl+Space hotkey-overlay-title="Emoji Picker (smile)" { spawn "flatpak" "run" "it.mijorus.smile"; } -- cgit