aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:44:37 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:45:03 +0400
commit80928632ba38210242832e316b57e2e153da7efd (patch)
tree2ed62ffc89913f060dc4633b3f75aa7ff1740540 /src/config.rs
parentdc10e464ad3bd95007873875bf44e9280392e15a (diff)
downloadniri-80928632ba38210242832e316b57e2e153da7efd.tar.gz
niri-80928632ba38210242832e316b57e2e153da7efd.tar.bz2
niri-80928632ba38210242832e316b57e2e153da7efd.zip
Add prefer-no-csd option
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index aae77fde..91b4c2e1 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -19,6 +19,8 @@ pub struct Config {
#[knuffel(child, default)]
pub focus_ring: FocusRing,
#[knuffel(child, default)]
+ pub prefer_no_csd: bool,
+ #[knuffel(child, default)]
pub binds: Binds,
#[knuffel(child, default)]
pub debug: DebugConfig,
@@ -350,6 +352,8 @@ mod tests {
inactive-color 1.0 0.5 0.25 0.0
}
+ prefer-no-csd
+
binds {
Mod+T { spawn "alacritty"; }
Mod+Q { close-window; }
@@ -403,6 +407,7 @@ mod tests {
a: 0.,
},
},
+ prefer_no_csd: true,
binds: Binds(vec![
Bind {
key: Key {