aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-10-07 17:45:55 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-10-07 17:45:55 +0400
commit994bc64679a36d52e3bc0bab8d2b6042a4e12cd0 (patch)
tree94d938ada04e9c9fb279bb377e0113545ccf4433 /src/config.rs
parent624b3296e927b7b71b2b2f92006cc242a9c06205 (diff)
downloadniri-994bc64679a36d52e3bc0bab8d2b6042a4e12cd0.tar.gz
niri-994bc64679a36d52e3bc0bab8d2b6042a4e12cd0.tar.bz2
niri-994bc64679a36d52e3bc0bab8d2b6042a4e12cd0.zip
Add gaps setting
The past few refactors have led up to this point, and now it's finally possible.
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 bb8cfcf6..6f695c34 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -24,6 +24,8 @@ pub struct Config {
pub cursor: Cursor,
#[knuffel(child, unwrap(children), default)]
pub preset_column_widths: Vec<PresetWidth>,
+ #[knuffel(child, unwrap(argument), default = 16)]
+ pub gaps: u16,
#[knuffel(child, default)]
pub binds: Binds,
#[knuffel(child, default)]
@@ -528,6 +530,8 @@ mod tests {
fixed 1280
}
+ gaps 8
+
binds {
Mod+T { spawn "alacritty"; }
Mod+Q { close-window; }
@@ -601,6 +605,7 @@ mod tests {
PresetWidth::Fixed(960),
PresetWidth::Fixed(1280),
],
+ gaps: 8,
binds: Binds(vec![
Bind {
key: Key {