From f5c97faf4aefc8366c3be7475dde5412a42dbc8f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 26 Mar 2024 13:35:37 +0400 Subject: wiki: Improve window rules formatting --- wiki/Configuration:-Window-Rules.md | 18 +++++++++++------- 1 file 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 } ``` -- cgit