diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2024-08-09 21:16:20 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2024-08-09 21:16:20 +0300 |
| commit | d44a07d437eb799e742a0b3446e1329d88d61a23 (patch) | |
| tree | b867eb9726e3cc08a820b16b836c91fa53fa41b5 /src | |
| parent | 0ba5ffab5f1d2cc3b406135afbdebf6f70285951 (diff) | |
| download | i3bar-mango-d44a07d437eb799e742a0b3446e1329d88d61a23.tar.gz | |
config: add show_tags option
Diffstat (limited to 'src')
| -rw-r--r-- | src/bar.rs | 2 | ||||
| -rw-r--r-- | src/config.rs | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -207,7 +207,7 @@ impl Bar { } // Compute tags - if self.tags_computed.is_empty() { + if ss.config.show_tags && self.tags_computed.is_empty() { for tag in &self.tags { let (bg, fg) = if tag.is_urgent { (ss.config.tag_urgent_bg, ss.config.tag_urgent_fg) diff --git a/src/config.rs b/src/config.rs index 0863e1d..e84607a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -44,6 +44,7 @@ pub struct Config { pub layer: Layer, pub hide_inactive_tags: bool, pub invert_touchpad_scrolling: bool, + pub show_tags: bool, pub show_layout_name: bool, pub blend: bool, pub show_mode: bool, @@ -88,6 +89,7 @@ impl Default for Config { layer: Layer::Top, hide_inactive_tags: true, invert_touchpad_scrolling: true, + show_tags: true, show_layout_name: true, blend: true, show_mode: true, |
