diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 48fcda7a..a22c1653 100644 --- a/src/config.rs +++ b/src/config.rs @@ -247,6 +247,10 @@ pub struct Config { #[serde(default)] background_opacity: Alpha, + /// Should draw window without borders + #[serde(default)] + borderless: bool, + /// Keybindings #[serde(default="default_key_bindings")] key_bindings: Vec<KeyBinding>, @@ -337,6 +341,7 @@ impl Default for Config { cursor_style: Default::default(), live_config_reload: true, padding: default_padding(), + borderless: false, } } } @@ -1105,6 +1110,11 @@ impl Config { self.background_opacity } + #[inline] + pub fn borderless(&self) -> bool { + self.borderless + } + pub fn key_bindings(&self) -> &[KeyBinding] { &self.key_bindings[..] } |