|
|
@ -23,7 +23,7 @@ use std::fs::OpenOptions; |
|
|
|
use std::io::{Read, Write}; |
|
|
|
use std::io::{Read, Write}; |
|
|
|
use std::path::Path; |
|
|
|
use std::path::Path; |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)] |
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
|
|
|
pub struct Config { |
|
|
|
pub struct Config { |
|
|
|
menu: Option<Menu>, |
|
|
|
menu: Option<Menu>, |
|
|
|
format: Option<Format>, |
|
|
|
format: Option<Format>, |
|
|
@ -161,13 +161,13 @@ impl Config { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)] |
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
|
|
|
pub struct Menu { |
|
|
|
pub struct Menu { |
|
|
|
executable: Option<String>, |
|
|
|
executable: Option<String>, |
|
|
|
args: Option<Vec<String>>, |
|
|
|
args: Option<Vec<String>>, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)] |
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
|
|
|
pub struct Format { |
|
|
|
pub struct Format { |
|
|
|
output_format: Option<String>, |
|
|
|
output_format: Option<String>, |
|
|
|
workspace_format: Option<String>, |
|
|
|
workspace_format: Option<String>, |
|
|
@ -181,7 +181,7 @@ pub struct Format { |
|
|
|
fallback_icon: Option<String>, |
|
|
|
fallback_icon: Option<String>, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)] |
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)] |
|
|
|
pub struct Layout { |
|
|
|
pub struct Layout { |
|
|
|
auto_tile: Option<bool>, |
|
|
|
auto_tile: Option<bool>, |
|
|
|
auto_tile_min_window_width_per_output_width: Option<Vec<[i32; 2]>>, |
|
|
|
auto_tile_min_window_width_per_output_width: Option<Vec<[i32; 2]>>, |
|
|
|