shell: Make active hint size configurable
This commit is contained in:
parent
6492cfb96a
commit
4bf2c8df79
7 changed files with 58 additions and 26 deletions
|
|
@ -37,6 +37,8 @@ pub struct StaticConfig {
|
|||
pub workspace_mode: WorkspaceMode,
|
||||
pub workspace_amount: WorkspaceAmount,
|
||||
pub tiling_enabled: bool,
|
||||
#[serde(default = "default_active_hint")]
|
||||
pub active_hint: u8,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone, Copy, PartialEq, Eq)]
|
||||
|
|
@ -77,6 +79,10 @@ fn default_enabled() -> bool {
|
|||
true
|
||||
}
|
||||
|
||||
fn default_active_hint() -> u8 {
|
||||
4
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq)]
|
||||
pub struct OutputConfig {
|
||||
pub mode: ((i32, i32), Option<u32>),
|
||||
|
|
@ -221,6 +227,7 @@ impl Config {
|
|||
workspace_mode: WorkspaceMode::Global,
|
||||
workspace_amount: WorkspaceAmount::Dynamic,
|
||||
tiling_enabled: false,
|
||||
active_hint: default_active_hint(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue