diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2025-04-22 22:05:08 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2025-04-22 22:05:08 +0300 |
| commit | 38a3cf817f7e0aacbec52c0ce124c86f1beb1369 (patch) | |
| tree | 68c9525bfccc0c5109e3b3a6052db0ac58ad06fa | |
| parent | 1db06d90067ad8ce1e6e5a808acddd16aac3adec (diff) | |
| download | i3bar-mango-38a3cf817f7e0aacbec52c0ce124c86f1beb1369.tar.gz | |
config: add start_hidden option
| -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(), |
