aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-03-14 12:40:57 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-03-15 21:31:08 +0100
commit1c1d8f622666c8ae3643b283ac979396ff116cee (patch)
treeb1a20716502c4f15fa58aa4f29c770bdb844d3ca /config
parentf6bcfe1d52dcab75411a7d48beef939565f22d1c (diff)
Add windowing rules for floating windows
Diffstat (limited to 'config')
-rw-r--r--config/niri/config.kdl15
1 files changed, 14 insertions, 1 deletions
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
@@ -317,6 +317,11 @@ window-rule {
}
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"; }