Add open-maximized window rule

This commit is contained in:
Ivan Molodetskikh
2024-02-23 14:24:39 +04:00
parent 2317021a7c
commit 6a587245eb
5 changed files with 41 additions and 8 deletions
+4
View File
@@ -583,6 +583,8 @@ pub struct WindowRule {
pub default_column_width: Option<DefaultColumnWidth>,
#[knuffel(child, unwrap(argument))]
pub open_on_output: Option<String>,
#[knuffel(child, unwrap(argument))]
pub open_maximized: Option<bool>,
}
#[derive(knuffel::Decode, Debug, Default, Clone)]
@@ -1062,6 +1064,7 @@ mod tests {
exclude title="~"
open-on-output "eDP-1"
open-maximized true
}
binds {
@@ -1221,6 +1224,7 @@ mod tests {
title: Some(Regex::new("~").unwrap()),
}],
open_on_output: Some("eDP-1".to_owned()),
open_maximized: Some(true),
..Default::default()
}],
binds: Binds(vec![