updates tab_bar

This commit is contained in:
Dennis 2025-08-12 15:06:43 +02:00
parent bd0612511d
commit 192ae592bc
2 changed files with 5 additions and 3 deletions

View file

@ -53,9 +53,11 @@ function M.move_pane(key, direction)
end
function M.get_zoom_state(active_pane)
local zoom_state = active_pane:is_zoomed() and "[Z] " or ""
if active_pane.is_zoomed then
return "[Z]"
end
return zoom_state
return ""
end
return M

View file

@ -10,7 +10,7 @@ local function get_elements(for_window)
return {
{ Background = { Color = theme.colors().tab_bar.background } },
{ Foreground = { Color = theme.colors().tab_bar.inactive_tab.fg_color } },
{ Text = helpers.get_zoom_state(active_pane) },
{ Text = helpers.get_zoom_state(active_pane) .. " " },
{ Text = "h:" .. wezterm.hostname() .. " " },
{ Text = "upgrades:" .. helpers.get_outdated_packages() .. " " },
{ Text = "bat:" .. helpers.get_primary_battery_state() .. " " },