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 /niri-config/src | |
| 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 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 6ae66aeb..4b597f99 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -440,6 +440,8 @@ pub struct Output { pub mode: Option<ConfiguredMode>, #[knuffel(child)] pub variable_refresh_rate: Option<Vrr>, + #[knuffel(child)] + pub focus_at_startup: bool, #[knuffel(child, default = DEFAULT_BACKGROUND_COLOR)] pub background_color: Color, } @@ -462,6 +464,7 @@ impl Default for Output { fn default() -> Self { Self { off: false, + focus_at_startup: false, name: String::new(), scale: None, transform: Transform::Normal, @@ -3746,6 +3749,7 @@ mod tests { } output "eDP-1" { + focus-at-startup scale 2 transform "flipped-90" position x=10 y=20 @@ -4105,6 +4109,7 @@ mod tests { on_demand: true, }, ), + focus_at_startup: true, background_color: Color { r: 0.09803922, g: 0.09803922, |
