From b6694d1696bef93c66a86eaf156d7fe6b494b862 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 13 Feb 2021 22:51:24 +0100 Subject: [PATCH] option to hide i3 bar --- defaults/main.yaml | 2 ++ templates/i3/i3.config.j2 | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/defaults/main.yaml b/defaults/main.yaml index 569d807..8ab7d1a 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -63,3 +63,5 @@ home_autostart_unclutter: "{{ home_profile == 'presentation' }}" default_activities: [] workspaces: {} + +i3_hide_bar: false diff --git a/templates/i3/i3.config.j2 b/templates/i3/i3.config.j2 index 1aaf6d6..22f58ff 100644 --- a/templates/i3/i3.config.j2 +++ b/templates/i3/i3.config.j2 @@ -336,6 +336,12 @@ mode "resize" { ### Bar bar { +{% if i3_hide_bar %} + mode hide + hidden_state hide + modifier $mod +{% endif %} + position top strip_workspace_numbers yes