You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/wiki/Configuration:-Layer-Rules.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,18 @@ layer-rule {
42
42
noise 0.05
43
43
saturation 3
44
44
}
45
+
46
+
popups {
47
+
opacity 0.5
48
+
geometry-corner-radius 6
49
+
50
+
background-effect {
51
+
xray true
52
+
blur true
53
+
noise 0.05
54
+
saturation 3
55
+
}
56
+
}
45
57
}
46
58
```
47
59
@@ -241,3 +253,35 @@ layer-rule {
241
253
}
242
254
}
243
255
```
256
+
257
+
#### `popups`
258
+
259
+
<sup>Since: next release</sup>
260
+
261
+
Override properties for this layer surface's pop-ups (e.g. a menu opened by clicking an item in Waybar).
262
+
263
+
The properties work the same way as the corresponding layer-rule properties, except that they apply to the layer surface's pop-ups rather than to the layer surface itself.
264
+
265
+
`opacity` is applied *on top* of the layer surface's own opacity rule, so setting both will make pop-ups more transparent than the surface.
266
+
Other properties apply independently.
267
+
268
+
> [!NOTE]
269
+
> This block does not affect input-method pop-ups, such as Fcitx.
Copy file name to clipboardExpand all lines: docs/wiki/Configuration:-Window-Rules.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,18 @@ window-rule {
107
107
saturation 3
108
108
}
109
109
110
+
popups {
111
+
opacity 0.5
112
+
geometry-corner-radius 15
113
+
114
+
background-effect {
115
+
xray true
116
+
blur true
117
+
noise 0.05
118
+
saturation 3
119
+
}
120
+
}
121
+
110
122
min-width 100
111
123
max-width 200
112
124
min-height 300
@@ -941,6 +953,45 @@ window-rule {
941
953
}
942
954
```
943
955
956
+
#### `popups`
957
+
958
+
<sup>Since: next release</sup>
959
+
960
+
Override properties for this window's pop-ups (menus and tooltips).
961
+
962
+
The properties work the same way as the corresponding window-rule properties, except that they apply to the window's pop-ups rather than to the window itself.
963
+
964
+
`opacity` is applied *on top* of the layer surface's own opacity rule, so setting both will make pop-ups more transparent than the surface.
965
+
Other properties apply independently.
966
+
967
+
> [!NOTE]
968
+
> This block does not affect input-method pop-ups, such as Fcitx.
969
+
> Only the app's own pop-ups.
970
+
971
+
```kdl
972
+
// Blur the background behind pop-up menus in Nautilus.
973
+
window-rule {
974
+
match app-id="Nautilus"
975
+
976
+
popups {
977
+
// Matches the default libadwaita pop-up corner radius.
978
+
geometry-corner-radius 15
979
+
980
+
// Note: it'll look better to set background opacity
981
+
// through your GTK theme CSS and not here.
982
+
// This is just an example that makes it look obvious.
983
+
opacity 0.5
984
+
985
+
background-effect {
986
+
blur true
987
+
}
988
+
}
989
+
}
990
+
```
991
+
992
+
Keep in mind that the background effect will look right only if the pop-up is shaped like a (rounded) rectangle, and the window correctly sets its Wayland geometry to exclude any shadows.
993
+
For example, GTK 4 pop-ups with pointing arrows (`has-arrow=true` property) are *not* rounded rectangles—the arrow sticks out—so if you enable blur, it will also stick out of the pop-up.
994
+
944
995
#### Size Overrides
945
996
946
997
You can amend the window's minimum and maximum size in logical pixels.
0 commit comments