From 6e746e30ee76a03770fd14d0166920a4e773da5c Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 23 Jun 2021 22:03:28 +0200 Subject: [PATCH] Start implementing a config --- Cargo.toml | 2 ++ src/config.rs | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/config.rs diff --git a/Cargo.toml b/Cargo.toml index d2010dd..b1e4ed9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,5 @@ serde_json = "1.0.59" clap = "3.0.0-beta.2" users = "0.11.0" swayipc = "2.7.2" +toml = "0.5.8" +directories = "3.0" diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..25e55ee --- /dev/null +++ b/src/config.rs @@ -0,0 +1,17 @@ +#[derive(Serialize, Deserialize)] +pub struct Config { + launcher: Option, + format: Option, +} + +#[derive(Serialize, Deserialize)] +pub struct Launcher { + executable: Option, + args: Option>, +} + +#[derive(Serialize, Deserialize)] +pub struct Format { + window_format: Option, + workspace_format: Option, +}