diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-31 08:57:44 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-31 08:57:44 +0400 |
| commit | 8fa5bf9a3644bb0548f85e83998781f7d055bb8d (patch) | |
| tree | 35bd1443c3f4bc352f87b0235dc50a9b47909840 /src/config.rs | |
| parent | d854c2d699b15c68c4715dc6be803065c01f2fe6 (diff) | |
| download | niri-8fa5bf9a3644bb0548f85e83998781f7d055bb8d.tar.gz niri-8fa5bf9a3644bb0548f85e83998781f7d055bb8d.tar.bz2 niri-8fa5bf9a3644bb0548f85e83998781f7d055bb8d.zip | |
Make screenshot path configurable
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index dc1ceeaa..04846eae 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,6 +26,8 @@ pub struct Config { pub preset_column_widths: Vec<PresetWidth>, #[knuffel(child, unwrap(argument), default = 16)] pub gaps: u16, + #[knuffel(child, unwrap(argument), default = Some(PathBuf::from("~/Pictures/Screenshots")))] + pub screenshot_path: Option<PathBuf>, #[knuffel(child, default)] pub binds: Binds, #[knuffel(child, default)] @@ -539,6 +541,8 @@ mod tests { gaps 8 + screenshot-path "~/Screenshots" + binds { Mod+T { spawn "alacritty"; } Mod+Q { close-window; } @@ -613,6 +617,7 @@ mod tests { PresetWidth::Fixed(1280), ], gaps: 8, + screenshot_path: Some(PathBuf::from("~/Screenshots")), binds: Binds(vec