diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | src/config.rs | 2 | ||||
| -rw-r--r-- | src/state.rs | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -83,6 +83,7 @@ show_tags = true show_layout_name = true blend = true # whether tags/blocks colors should blend with bar's background show_mode = true +start_hidden = false # whether the bar is initially in the 'hidden' state # WM-specific options [wm.river] diff --git a/src/config.rs b/src/config.rs index e4b82cf..f54e2ed 100644 --- a/src/config.rs +++ b/src/config.rs @@ -48,6 +48,7 @@ pub struct Config { pub show_layout_name: bool, pub blend: bool, pub show_mode: bool, + pub start_hidden: bool, // wm-specific pub wm: WmConfig, // overrides @@ -93,6 +94,7 @@ impl Default for Config { show_layout_name: true, blend: true, show_mode: true, + start_hidden: false, wm: WmConfig { river: RiverConfig { max_tag: 9 }, diff --git a/src/state.rs b/src/state.rs index 19d6434..263f38c 100644 --- a/src/state.rs +++ b/src/state.rs @@ -94,7 +94,7 @@ impl State { pending_outputs: Vec::new(), - hidden: false, + hidden: config.start_hidden, has_error: false, bars: Vec::new(), |
