feat: bar auto-hide options
Adds two new bar-level options: - `start_hidden`, which stops a bar from showing when Ironbar starts. It can then be hidden via IPC or auto-hide. - `autohide`, which takes a delay after which the bar will be hidden when the cursor leaves. Hovering at the screen edge where the bar is located reveals the bar again. Resolves #167
This commit is contained in:
@@ -99,6 +99,11 @@ pub struct Config {
|
||||
pub popup_gap: i32,
|
||||
pub name: Option<String>,
|
||||
|
||||
#[serde(default)]
|
||||
pub start_hidden: Option<bool>,
|
||||
#[serde(default)]
|
||||
pub autohide: Option<u64>,
|
||||
|
||||
/// GTK icon theme to use.
|
||||
pub icon_theme: Option<String>,
|
||||
|
||||
@@ -127,6 +132,8 @@ impl Default for Config {
|
||||
height: default_bar_height(),
|
||||
margin: MarginConfig::default(),
|
||||
name: None,
|
||||
start_hidden: None,
|
||||
autohide: None,
|
||||
popup_gap: default_popup_gap(),
|
||||
icon_theme: None,
|
||||
ironvar_defaults: None,
|
||||
|
||||
Reference in New Issue
Block a user