From 2ede659134936fe294f454a6b2247e1918af6f51 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Mon, 19 Nov 2018 16:23:47 -0500 Subject: Add option for launching Alacritty maximized --- src/config.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index d56e8578..4f62440a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -380,6 +380,10 @@ pub struct WindowConfig { /// Spread out additional padding evenly #[serde(default, deserialize_with = "failure_default")] dynamic_padding: bool, + + /// Start maximized + #[serde(default, deserialize_with = "failure_default")] + start_maximized: bool, } fn default_padding() -> Delta { @@ -406,6 +410,10 @@ impl WindowConfig { pub fn dynamic_padding(&self) -> bool { self.dynamic_padding } + + pub fn start_maximized(&self) -> bool { + self.start_maximized + } } impl Default for WindowConfig { @@ -415,6 +423,7 @@ impl Default for WindowConfig { padding: default_padding(), decorations: Default::default(), dynamic_padding: false, + start_maximized: false, } } } -- cgit v1.2.3-54-g00ecf