diff options
Diffstat (limited to 'wiki')
| -rw-r--r-- | wiki/Configuration:-Named-Workspaces.md | 2 | ||||
| -rw-r--r-- | wiki/Configuration:-Outputs.md | 12 | ||||
| -rw-r--r-- | wiki/Configuration:-Window-Rules.md | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/wiki/Configuration:-Named-Workspaces.md b/wiki/Configuration:-Named-Workspaces.md index 2e6da060..bb7ff388 100644 --- a/wiki/Configuration:-Named-Workspaces.md +++ b/wiki/Configuration:-Named-Workspaces.md @@ -8,7 +8,7 @@ You can declare named workspaces at the top level of the config: workspace "browser" workspace "chat" { - open-on-output "DP-2" + open-on-output "Some Company CoolMonitor 1234" } ``` diff --git a/wiki/Configuration:-Outputs.md b/wiki/Configuration:-Outputs.md index f7b3adf8..59bf9182 100644 --- a/wiki/Configuration:-Outputs.md +++ b/wiki/Configuration:-Outputs.md @@ -19,14 +19,22 @@ output "eDP-1" { output "HDMI-A-1" { // ...settings for HDMI-A-1... } + +output "Some Company CoolMonitor 1234" { + // ...settings for CoolMonitor... +} ``` -Outputs are matched by connector name (i.e. `eDP-1`, `HDMI-A-1`) which you can find by running `niri msg outputs`. +Outputs are matched by connector name (i.e. `eDP-1`, `HDMI-A-1`), or by monitor manufacturer, model, and serial, separated by a single space each. +You can find all of these by running `niri msg outputs`. + Usually, the built-in monitor in laptops will be called `eDP-1`. -Matching by output manufacturer and model is planned, but blocked on Smithay adopting libdisplay-info instead of edid-rs. <sup>Since: 0.1.6</sup> The output name is case-insensitive. +<sup>Since: 0.1.9</sup> Outputs can be matched by manufacturer, model, and serial. +Before, they could be matched only by the connector name. + ### `off` This flag turns off that output entirely. diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md index b13b4661..c52bef61 100644 --- a/wiki/Configuration:-Window-Rules.md +++ b/wiki/Configuration:-Window-Rules.md @@ -37,7 +37,7 @@ window-rule { // Properties that apply once upon window opening. default-column-width { proportion 0.75; } - open-on-output "eDP-1" + open-on-output "Some Company CoolMonitor 1234" open-on-workspace "chat" open-maximized true open-fullscreen true @@ -252,6 +252,8 @@ window-rule { exclude app-id=r#"^org\.telegram\.desktop$"# title="^Media viewer$" open-on-output "HDMI-A-1" + // Or: + // open-on-output "Some Company CoolMonitor 1234" } ``` |
