diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-27 09:31:32 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | fc99724aba1c0043eda3ad1b9829da8ae802d310 (patch) | |
| tree | 2a0face72bccbbf86da931bd92a7a5885b58e040 /niri-config/src | |
| parent | 88fbc62b1d3cb245453b9ac5a8faae2b9159866a (diff) | |
| download | niri-fc99724aba1c0043eda3ad1b9829da8ae802d310.tar.gz niri-fc99724aba1c0043eda3ad1b9829da8ae802d310.tar.bz2 niri-fc99724aba1c0043eda3ad1b9829da8ae802d310.zip | |
Add open-focused window rule
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 8d755c78..607d8f37 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -985,6 +985,8 @@ pub struct WindowRule { pub open_fullscreen: Option<bool>, #[knuffel(child, unwrap(argument))] pub open_floating: Option<bool>, + #[knuffel(child, unwrap(argument))] + pub open_focused: Option<bool>, // Rules applied dynamically. #[knuffel(child, unwrap(argument))] @@ -3142,6 +3144,7 @@ mod tests { open-maximized true open-fullscreen false open-floating false + open-focused true focus-ring { off @@ -3421,6 +3424,7 @@ mod tests { open_maximized: Some(true), open_fullscreen: Some(false), open_floating: Some(false), + open_focused: Some(true), focus_ring: BorderRule { off: true, width: Some(FloatOrInt(3.)), |
