mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add toggle-window-rule-opacity action
This commit is contained in:
@@ -253,3 +253,14 @@ Or, in scripts:
|
||||
```shell
|
||||
niri msg action do-screen-transition --delay-ms 100
|
||||
```
|
||||
|
||||
#### `toggle-window-rule-opacity`
|
||||
|
||||
Toggle the opacity window rule of the focused window.
|
||||
This only has an effect if the window's opacity window rule is already set to semitransparent.
|
||||
|
||||
```kdl
|
||||
binds {
|
||||
Mod+O { toggle-window-rule-opacity; }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -492,6 +492,8 @@ This is applied on top of the window's own opacity, so semitransparent windows w
|
||||
|
||||
Opacity is applied to every surface of the window individually, so subsurfaces and pop-up menus will show window content behind them.
|
||||
|
||||
Opacity can be toggled on or off for a window using the [`toggle-window-rule-opacity`](./Configuration:-Key-Bindings.md) action.
|
||||
|
||||

|
||||
|
||||
Also, focus ring and border with background will show through semitransparent windows (see `prefer-no-csd` and the `draw-border-with-background` window rule below).
|
||||
|
||||
Reference in New Issue
Block a user