diff options
author | Jonathan Dahan <hi@jonathan.is> | 2018-11-19 16:23:47 -0500 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-19 21:23:47 +0000 |
commit | 2ede659134936fe294f454a6b2247e1918af6f51 (patch) | |
tree | 13f97679a4fd29f267a84338206e5e6f8427bc17 /src/config.rs | |
parent | fc04bc1e6dfc6f1bd3f0a70b1d6d2b6cbc551d40 (diff) | |
download | alacritty-2ede659134936fe294f454a6b2247e1918af6f51.tar.gz alacritty-2ede659134936fe294f454a6b2247e1918af6f51.zip |
Add option for launching Alacritty maximized
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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<u8> { @@ -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, } } } |