mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
wiki: Improve window rules formatting
This commit is contained in:
@@ -117,13 +117,14 @@ window-rule {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
One way to find the window title and app ID is to configure the `wlr/taskbar` module in [Waybar](https://github.com/Alexays/Waybar) to include them in the tooltip:
|
> [!TIP]
|
||||||
|
> One way to find the window title and app ID is to configure the `wlr/taskbar` module in [Waybar](https://github.com/Alexays/Waybar) to include them in the tooltip:
|
||||||
```json
|
>
|
||||||
"wlr/taskbar": {
|
> ```json
|
||||||
"tooltip-format": "{title} | {app_id}",
|
> "wlr/taskbar": {
|
||||||
}
|
> "tooltip-format": "{title} | {app_id}",
|
||||||
```
|
> }
|
||||||
|
> ```
|
||||||
|
|
||||||
#### `is-active`
|
#### `is-active`
|
||||||
|
|
||||||
@@ -202,7 +203,10 @@ window-rule {
|
|||||||
Make the window open as a maximized column.
|
Make the window open as a maximized column.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
// Maximize Firefox by default.
|
||||||
window-rule {
|
window-rule {
|
||||||
|
match app-id=r#"^org\.mozilla\.firefox$"#
|
||||||
|
|
||||||
open-maximized true
|
open-maximized true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user