blob: 98a1e3464dff85fcc4d61c0856944840269b72d8 (
plain) (
blame)
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
|
workspace "main"
workspace "games"
// Window rules let you adjust behavior for individual windows.
// Find more information on the wiki:
// https://yalter.github.io/niri/Configuration:-Window-Rules
window-rule {
geometry-corner-radius 12
clip-to-geometry true
}
// Open the Firefox picture-in-picture player as floating by default.
window-rule {
// This app-id regular expression will work for both:
// - host Firefox (app-id is "firefox")
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
open-floating true
default-floating-position x=32 y=32 relative-to="bottom-right"
}
window-rule {
match app-id=r#"firefox"# title="Choose User Profile"
open-floating true
}
window-rule {
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
block-out-from "screen-capture"
}
window-rule {
match app-id=r#"^org\.telegram\.desktop$"#
exclude app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
default-column-width {
fixed 900
}
}
window-rule {
match app-id=r#"^org\.telegram\.desktop$"# title="Media viewer"
open-floating true
}
window-rule {
match app-id=r#"steam"#
open-on-workspace "games"
}
window-rule {
match app-id=r#"steam"# title="Steam"
open-maximized true
}
|