Start implementing a config

timeout_old
Tassilo Horn 3 years ago
parent f25ca4b70a
commit 6e746e30ee
  1. 2
      Cargo.toml
  2. 17
      src/config.rs

@ -14,3 +14,5 @@ serde_json = "1.0.59"
clap = "3.0.0-beta.2" clap = "3.0.0-beta.2"
users = "0.11.0" users = "0.11.0"
swayipc = "2.7.2" swayipc = "2.7.2"
toml = "0.5.8"
directories = "3.0"

@ -0,0 +1,17 @@
#[derive(Serialize, Deserialize)]
pub struct Config {
launcher: Option<Launcher>,
format: Option<Format>,
}
#[derive(Serialize, Deserialize)]
pub struct Launcher {
executable: Option<String>,
args: Option<Vec<String>>,
}
#[derive(Serialize, Deserialize)]
pub struct Format {
window_format: Option<String>,
workspace_format: Option<String>,
}
Loading…
Cancel
Save