wezterm: Allow toggling tab bar display

Tab display can be toggled on or off with `Ctrl+Shift+T`. The toggling
takes place per-window and not globally, so we can have a wezterm
terminal on desktop 1 with a tabbar and on desktop 2 without. Opening
a new terminal always defaults to an enabled tab bar.
This commit is contained in:
Marty Oehme 2024-02-16 11:01:41 +01:00
parent 0c7ad09789
commit ab123a4c36
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 16 additions and 2 deletions

View file

@ -100,6 +100,7 @@ local keys = {
action = act.EmitEvent("ActivatePaneDirection-Right"),
},
{ key = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") },
{ key = "T", mods = "CTRL", action = act.EmitEvent("toggle-tabbar") },
}
-- Leader + number to activate that tab
for i = 1, 8 do