From 38a3cf817f7e0aacbec52c0ce124c86f1beb1369 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Tue, 22 Apr 2025 22:05:08 +0300 Subject: config: add start_hidden option --- README.md | 1 + src/config.rs | 2 ++ src/state.rs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9fd133..c507402 100644 --- a/README.md +++ b/README.md @@ -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(), -- cgit v1.3.1