diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-26 13:35:37 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-26 13:35:37 +0400 |
| commit | f5c97faf4aefc8366c3be7475dde5412a42dbc8f (patch) | |
| tree | d5eda78b824b144618e4e085e86e5b09a23f0a89 /wiki/Configuration:-Window-Rules.md | |
| parent | 8f1bbea863e3ff101f50b9b7f835ddd0951b5ee6 (diff) | |
| download | niri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.tar.gz niri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.tar.bz2 niri-f5c97faf4aefc8366c3be7475dde5412a42dbc8f.zip | |
wiki: Improve window rules formatting
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
| -rw-r--r-- | wiki/Configuration:-Window-Rules.md | 18 |
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 } ``` |
