aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-26 13:35:37 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-26 13:35:37 +0400
commitf5c97faf4aefc8366c3be7475dde5412a42dbc8f (patch)
treed5eda78b824b144618e4e085e86e5b09a23f0a89
parent8f1bbea863e3ff101f50b9b7f835ddd0951b5ee6 (diff)
downloadniri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.tar.gz
niri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.tar.bz2
niri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.zip
wiki: Improve window rules formatting
-rw-r--r--wiki/Configuration:-Window-Rules.md18
1 files changed, 11 insertions, 7 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md
index d68b85b3..09f36333 100644
--- a/wiki/Configuration:-Window-Rules.md
+++ b/wiki/Configuration:-Window-Rules.md
@@ -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:
-
-```json
-"wlr/taskbar": {
- "tooltip-format": "{title} | {app_id}",
-}
-```
+> [!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": {
+> "tooltip-format": "{title} | {app_id}",
+> }
+> ```
#### `is-active`
@@ -202,7 +203,10 @@ window-rule {
Make the window open as a maximized column.
```
+// Maximize Firefox by default.
window-rule {
+ match app-id=r#"^org\.mozilla\.firefox$"#
+
open-maximized true
}
```