summaryrefslogtreecommitdiff
path: root/niri/cfg/window-rules.kdl
blob: ed8c0316cb16c4d97c7a970b7a5556981b25278a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
window-rule {
    match app-id=r#"firefox$"# title="^Picture-in-Picture$"
    match app-id=r#"zen$"# title="^Picture-in-Picture$"
    match app-id=r#"librewolf$"# title="^Picture-in-Picture$"

	match title=r#"^Picture in picture$"#

    open-floating true
	// Anchor to the top edge of the screen.
    default-floating-position x=20 y=20 relative-to="bottom-right"
    // Half of the screen high.
    default-window-height { proportion 0.5; }
    // 80% of the screen wide.
    default-column-width { proportion 0.4; }
}

window-rule {
	match app-id="zen"
	match app-id="firefox"
	match app-id="chromium"
	match app-id="brave-browser"
	match app-id="librewolf"

	open-maximized true
}

window-rule {
	match app-id="mpv"
	open-maximized true
}

// Floating window for my bash scripts
window-rule {
	match app-id="TUI.float"
	match app-id="Wifitui"

	open-floating true
	  default-column-width { proportion 0.75; }
	  default-window-height { proportion 0.7; }
}

// KDE file picker
window-rule {
  match app-id="org.freedesktop.impl.portal.desktop.kde"

  open-floating true
  default-column-width { proportion 0.5; }
  default-window-height { proportion 0.5; }
}

// Rounded cornors for all windows
window-rule {
    geometry-corner-radius 8
    clip-to-geometry true
}

// Noctalia shell is not able to set wallpaper if this is not false
layer-rule {
	match namespace="^noctalia-wallpaper*"
	place-within-backdrop false
}