summaryrefslogtreecommitdiff
path: root/niri/cfg/looknfeel.kdl
blob: 6d40bc32aa2962f079236037a4b3c02bdf1e55bc (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
62
63
64
65
66
67
68
69
70
71
72
animations {
    // Uncomment to turn off all animations.
    // off

    // Slow down all animations by this factor. Values below 1 speed them up instead.
    // slowdown 3.0
}

blur {
    on
    passes 5
    offset 3.0
    noise 0.02
    saturation 1.5
}

// Enable blur behind the Alacritty terminal.
window-rule {
    match app-id="^kitty$"
    match app-id="TUI.float"

    background-effect {
        blur true
    }
}

// Enable blur behind the rofi.
layer-rule {
    match namespace="^rofi$"

    background-effect {
        blur true
    }
}

layer-rule {
    match namespace="waybar"
    match layer="top"
    
    // Main bar properties
    background-effect {
        xray true      // Use efficient x-ray blur or false for normal blur
        blur true
        noise 0.05
        saturation 3
    }

    // Optional: Blur for Waybar popups (menus)
    popups {
        opacity 0.5
        background-effect {
            xray true
            blur true
            noise 0.05
            saturation 3
        }
    }
}

layer-rule {
    // Matches the rofi namespace
    match namespace="^rofi$"
    
    // Enables the blur
    background-effect {
        blur true
    }

    // IMPORTANT: Match this to your Rofi theme's border-radius
    // If your Rofi theme has 12px corners, set it here too.
    geometry-corner-radius 12
}