summaryrefslogtreecommitdiffstats
path: root/.config/niri/config.kdl
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-12-09 01:16:07 +0300
committerPavel Egorov <[email protected]>2025-12-09 01:16:07 +0300
commit469f7669b2002ea6378c311297fa5d4c90a02c1d (patch)
treef6f67a65c6e731fb525c98eb89780e8eb44be228 /.config/niri/config.kdl
parentf15826037ec06e0464ea91b5d618a5523aaf232a (diff)
downloaddotfiles-469f7669b2002ea6378c311297fa5d4c90a02c1d.tar.gz
dotfiles-469f7669b2002ea6378c311297fa5d4c90a02c1d.zip
[niri] Set some window rules
Diffstat (limited to '')
-rw-r--r--.config/niri/config.kdl41
1 files changed, 1 insertions, 40 deletions
diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl
index 211f12d..af12bf8 100644
--- a/.config/niri/config.kdl
+++ b/.config/niri/config.kdl
@@ -7,6 +7,7 @@ include "input.kdl"
7include "output.kdl" 7include "output.kdl"
8include "layout.kdl" 8include "layout.kdl"
9include "binds.kdl" 9include "binds.kdl"
10include "windows.kdl"
10 11
11 12
12// Add lines like this to spawn processes at startup. 13// Add lines like this to spawn processes at startup.
@@ -51,46 +52,6 @@ animations {
51 // slowdown 3.0 52 // slowdown 3.0
52} 53}
53 54
54// Window rules let you adjust behavior for individual windows.
55// Find more information on the wiki:
56// https://yalter.github.io/niri/Configuration:-Window-Rules
57
58// Work around WezTerm's initial configure bug
59// by setting an empty default-column-width.
60window-rule {
61 // This regular expression is intentionally made as specific as possible,
62 // since this is the default config, and we want no false positives.
63 // You can get away with just app-id="wezterm" if you want.
64 match app-id=r#"^org\.wezfurlong\.wezterm$"#
65 default-column-width {}
66}
67
68// Open the Firefox picture-in-picture player as floating by default.
69window-rule {
70 // This app-id regular expression will work for both:
71 // - host Firefox (app-id is "firefox")
72 // - Flatpak Firefox (app-id is "org.mozilla.firefox")
73 match app-id=r#"firefox$"# title="^Picture-in-Picture$"
74 open-floating true
75}
76
77window-rule {
78 match app-id=r#"^org\.keepassxc\.KeePassXC$"#
79
80 block-out-from "screen-capture"
81
82 // Use this instead if you want them visible on third-party screenshot tools.
83 // block-out-from "screencast"
84}
85
86// Example: enable rounded corners for all windows.
87// (This example rule is commented out with a "/-" in front.)
88window-rule {
89 geometry-corner-radius 12
90 clip-to-geometry true
91}
92
93
94cursor { 55cursor {
95 xcursor-theme "breeze_cursors" 56 xcursor-theme "breeze_cursors"
96} 57}