summaryrefslogtreecommitdiffstats
path: root/.config/niri/windows.kdl
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-12-16 05:03:05 +0300
committerPavel Egorov <[email protected]>2025-12-16 05:03:05 +0300
commit4cae51308aa8625dc2b482e5c36c58d6168b9fc1 (patch)
tree41e39409e76498200a3554f92e0854fc94a6b8d3 /.config/niri/windows.kdl
parenta3f41d2e86fc079717ba63b6f86239db6d044650 (diff)
parent2db38a695fc0483056d59fdc772c277a54303fe7 (diff)
downloaddotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.tar.gz
dotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.zip
Merge branch 'niri'
Diffstat (limited to '')
-rw-r--r--.config/niri/windows.kdl69
1 files changed, 69 insertions, 0 deletions
diff --git a/.config/niri/windows.kdl b/.config/niri/windows.kdl
new file mode 100644
index 0000000..44410d3
--- /dev/null
+++ b/.config/niri/windows.kdl
@@ -0,0 +1,69 @@
1workspace "main"
2workspace "games"
3
4// Window rules let you adjust behavior for individual windows.
5// Find more information on the wiki:
6// https://yalter.github.io/niri/Configuration:-Window-Rules
7
8window-rule {
9 geometry-corner-radius 12
10 clip-to-geometry true
11}
12
13// Open the Firefox picture-in-picture player as floating by default.
14window-rule {
15 // This app-id regular expression will work for both:
16 // - host Firefox (app-id is "firefox")
17 // - Flatpak Firefox (app-id is "org.mozilla.firefox")
18 match app-id=r#"firefox$"# title="^Picture-in-Picture$"
19
20 open-floating true
21 default-floating-position x=32 y=32 relative-to="bottom-right"
22}
23
24window-rule {
25 match app-id=r#"firefox"# title="Choose User Profile"
26
27 open-floating true
28}
29
30window-rule {
31 match app-id=r#"^org\.keepassxc\.KeePassXC$"#
32
33 block-out-from "screen-capture"
34}
35
36window-rule {
37 match app-id=r#"^org\.telegram\.desktop$"#
38 exclude app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
39
40 default-column-width {
41 fixed 900
42 }
43}
44
45window-rule {
46 match app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
47
48 open-floating true
49}
50
51window-rule {
52 match app-id=r#"steam"#
53
54 open-on-workspace "games"
55}
56
57window-rule {
58 match app-id=r#"steam"# title="Steam"
59
60 open-maximized true
61}
62
63window-rule {
64 match app-id=r#"steam"# title="Friends List"
65
66 default-column-width {
67 fixed 500
68 }
69}