diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | src/bar.rs | 2 | ||||
| -rw-r--r-- | src/config.rs | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -79,6 +79,7 @@ position = "top" # either "top" or "bottom" layer = "top" # one of "top", "overlay", "bottom" or "background" hide_inactive_tags = true invert_touchpad_scrolling = true +show_tags = true show_layout_name = true blend = true # whether tags/blocks colors should blend with bar's background show_mode = true @@ -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, |
