From e2a762cf870fef6b9af2ee63a6ee824052e8a1f9 Mon Sep 17 00:00:00 2001 From: wu-json Date: Sat, 26 Sep 2026 15:42:03 -0700 Subject: [PATCH 1/2] Show a subtle WezTerm pane zoom indicator --- wezterm/.config/wezterm/visuals.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/wezterm/.config/wezterm/visuals.lua b/wezterm/.config/wezterm/visuals.lua index 72e1d36..77ea505 100644 --- a/wezterm/.config/wezterm/visuals.lua +++ b/wezterm/.config/wezterm/visuals.lua @@ -2,6 +2,31 @@ local wezterm = require("wezterm") local module = {} +wezterm.on("update-status", function(window) + local tab = window:active_tab() + local zoomed = false + if tab then + for _, pane in ipairs(tab:panes_with_info()) do + if pane.is_zoomed then + zoomed = true + break + end + end + end + + window:set_right_status(zoomed and wezterm.format({ + { Foreground = { AnsiColor = "Blue" } }, + { Text = " zoom " }, + }) or "") + + local overrides = window:get_config_overrides() or {} + local hide_tab_bar = not zoomed + if overrides.hide_tab_bar_if_only_one_tab ~= hide_tab_bar then + overrides.hide_tab_bar_if_only_one_tab = hide_tab_bar + window:set_config_overrides(overrides) + end +end) + wezterm.on("format-tab-title", function(tab, tabs, panes, config) local title = tab.tab_title if not title or title == "" then @@ -19,6 +44,7 @@ end) function module.apply_to_config(config) config.color_scheme = "carbonfox" config.enable_tab_bar = true + config.status_update_interval = 200 config.show_new_tab_button_in_tab_bar = false config.show_close_tab_button_in_tabs = false config.show_tab_index_in_tab_bar = true From b0cc3e335f81e9588fba19bd23b9b0c43b04be62 Mon Sep 17 00:00:00 2001 From: wu-json Date: Sat, 26 Sep 2026 15:42:44 -0700 Subject: [PATCH 2/2] Use an expand icon for the pane zoom indicator --- wezterm/.config/wezterm/visuals.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm/.config/wezterm/visuals.lua b/wezterm/.config/wezterm/visuals.lua index 77ea505..622f714 100644 --- a/wezterm/.config/wezterm/visuals.lua +++ b/wezterm/.config/wezterm/visuals.lua @@ -16,7 +16,7 @@ wezterm.on("update-status", function(window) window:set_right_status(zoomed and wezterm.format({ { Foreground = { AnsiColor = "Blue" } }, - { Text = " zoom " }, + { Text = " " .. wezterm.nerdfonts.md_arrow_expand_all .. " " }, }) or "") local overrides = window:get_config_overrides() or {}