diff options
| author | lualeet <43719546+lualeet@users.noreply.github.com> | 2025-03-29 10:13:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-29 10:13:59 +0000 |
| commit | 8d43efe4ac38ddb6ce298d6fbdfc3ec610b8da56 (patch) | |
| tree | 8ae0d0fd527de6f26599d6357ba9c5d11ec2c518 /wiki | |
| parent | 3bb7e603115d59441a700deadf11d9fd834386ea (diff) | |
| download | niri-8d43efe4ac38ddb6ce298d6fbdfc3ec610b8da56.tar.gz niri-8d43efe4ac38ddb6ce298d6fbdfc3ec610b8da56.tar.bz2 niri-8d43efe4ac38ddb6ce298d6fbdfc3ec610b8da56.zip | |
Add option 'focus-at-startup' to focus a chosen output on start (#1323)
* Implement default-output
* Fix incorrect wiki string
* Center mouse on start
* Move default-output to Output.focus-at-startup
* fixes
---------
Co-authored-by: lualeet <lualeet@null.null>
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'wiki')
| -rw-r--r-- | wiki/Configuration:-Outputs.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/wiki/Configuration:-Outputs.md b/wiki/Configuration:-Outputs.md index 22e1c639..2a2ee4cf 100644 --- a/wiki/Configuration:-Outputs.md +++ b/wiki/Configuration:-Outputs.md @@ -13,6 +13,7 @@ output "eDP-1" { transform "90" position x=1280 y=0 variable-refresh-rate // on-demand=true + focus-at-startup background-color "#003300" } @@ -164,6 +165,28 @@ output "HDMI-A-1" { } ``` +### `focus-at-startup` + +<sup>Since: next release</sup> + +Focus this output by default when niri starts. + +If multiple outputs with `focus-at-startup` are connected, they are prioritized in the order that they appear in the config. + +When none of the connected outputs are explicitly `focus-at-startup`, niri will focus the first one sorted by name (same output sorting as used elsewhere in niri). + +```kdl +// Focus HDMI-A-1 by default. +output "HDMI-A-1" { + focus-at-startup +} + +// ...if HDMI-A-1 wasn't connected, focus DP-2 instead. +output "DP-2" { + focus-at-startup +} +``` + ### `background-color` <sup>Since: 0.1.8</sup> |
