configuration reconfiguration
This commit is contained in:
parent
da30455563
commit
433984ad45
1 changed files with 6 additions and 4 deletions
|
@ -16,11 +16,12 @@ pub struct Profile {
|
|||
pub name: String,
|
||||
pub icon: String,
|
||||
pub browser: BrowserConf,
|
||||
pub directory: String
|
||||
pub directory: String,
|
||||
// pub index: u32
|
||||
}
|
||||
#[derive(Serialize,Deserialize,Clone,Debug)]
|
||||
pub struct Programs {
|
||||
pub name: String,
|
||||
pub name: Option<String>,
|
||||
pub command: String,
|
||||
pub arguments: Vec<String>
|
||||
}
|
||||
|
@ -29,12 +30,13 @@ pub struct LockConf {
|
|||
pub blur: f32,
|
||||
pub scale: f32,
|
||||
}
|
||||
#[derive(Serialize,Deserialize,Default)]
|
||||
#[derive(Serialize,Deserialize,Clone,Default)]
|
||||
pub struct Config {
|
||||
pub title_length: usize,
|
||||
pub window_icons: Vec<WindowIcon>,
|
||||
pub wallpaper_path: String,
|
||||
pub programs: HashMap<String, Programs>,
|
||||
pub lock: LockConf,
|
||||
pub profiles: HashMap<String, Profile>
|
||||
//pub profiles: HashMap<String, Profile>
|
||||
pub profiles: Vec<Profile>// HashMap<u32,Profile>
|
||||
}
|
Loading…
Add table
Reference in a new issue