wiki: Improve window rules formatting
Browse files at this commitf5c97faf4aefc8366c3be7475dde5412a42dbc8fParent: 8f1bbea1 changed file +11 -7
wiki/Configuration:-Window-Rules.mdmodified+11 -7
| @@ -117,13 +117,14 @@ window-rule { | ||
| 117 | 117 | } |
| 118 | 118 | ``` |
| 119 | 119 | |
| 120 | -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: | |
| 121 | - | |
| 122 | -```json | |
| 123 | -"wlr/taskbar": { | |
| 124 | - "tooltip-format": "{title} | {app_id}", | |
| 125 | -} | |
| 126 | -``` | |
| 120 | +> [!TIP] | |
| 121 | +> 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: | |
| 122 | +> | |
| 123 | +> ```json | |
| 124 | +> "wlr/taskbar": { | |
| 125 | +> "tooltip-format": "{title} | {app_id}", | |
| 126 | +> } | |
| 127 | +> ``` | |
| 127 | 128 | |
| 128 | 129 | #### `is-active` |
| 129 | 130 | |
| @@ -202,7 +203,10 @@ window-rule { | ||
| 202 | 203 | Make the window open as a maximized column. |
| 203 | 204 | |
| 204 | 205 | ``` |
| 206 | +// Maximize Firefox by default. | |
| 205 | 207 | window-rule { |
| 208 | + match app-id=r#"^org\.mozilla\.firefox$"# | |
| 209 | + | |
| 206 | 210 | open-maximized true |
| 207 | 211 | } |
| 208 | 212 | ``` |