diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-16 11:43:13 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-16 12:27:09 +0400 |
| commit | cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4 (patch) | |
| tree | 8075783f9bdae04b3327e61ed613ebd8f4862896 /niri-config/src | |
| parent | c64d9e5223a4a19fa718dc5a0b3e74dd6ee3b0e0 (diff) | |
| download | niri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.tar.gz niri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.tar.bz2 niri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.zip | |
Implement at-startup window rule
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 76b33f74..ae3a1d56 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -764,6 +764,8 @@ pub struct Match { pub is_focused: Option<bool>, #[knuffel(property)] pub is_active_in_column: Option<bool>, + #[knuffel(property)] + pub at_startup: Option<bool>, } impl PartialEq for Match { @@ -771,6 +773,7 @@ impl PartialEq for Match { self.is_active == other.is_active && self.is_focused == other.is_focused && self.is_active_in_column == other.is_active_in_column + && self.at_startup == other.at_startup && self.app_id.as_ref().map(Regex::as_str) == other.app_id.as_ref().map(Regex::as_str) && self.title.as_ref().map(Regex::as_str) == other.title.as_ref().map(Regex::as_str) } @@ -2590,6 +2593,7 @@ mod tests { is_active: None, is_focused: None, is_active_in_column: None, + at_startup: None, }], excludes: vec![ Match { @@ -2598,6 +2602,7 @@ mod tests { is_active: None, is_focused: None, is_active_in_column: None, + at_startup: None, }, Match { app_id: None, @@ -2605,6 +2610,7 @@ mod tests { is_active: Some(true), is_focused: Some(false), is_active_in_column: None, + at_startup: None, }, ], open_on_output: Some("eDP-1".to_owned()), |
