summaryrefslogtreecommitdiffstats
path: root/.config/niri/windows.kdl
blob: 44410d37eb50efae3c27b606e2d251e23e18e81b (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
62
63
64
65
66
67
68
69
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
}

window-rule {
    match app-id=r#"steam"# title="Friends List"

    default-column-width {
        fixed 500
    }
}