updates tab_bar
This commit is contained in:
parent
bd0612511d
commit
192ae592bc
2 changed files with 5 additions and 3 deletions
|
|
@ -53,9 +53,11 @@ function M.move_pane(key, direction)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.get_zoom_state(active_pane)
|
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
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ local function get_elements(for_window)
|
||||||
return {
|
return {
|
||||||
{ Background = { Color = theme.colors().tab_bar.background } },
|
{ Background = { Color = theme.colors().tab_bar.background } },
|
||||||
{ Foreground = { Color = theme.colors().tab_bar.inactive_tab.fg_color } },
|
{ 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 = "h:" .. wezterm.hostname() .. " " },
|
||||||
{ Text = "upgrades:" .. helpers.get_outdated_packages() .. " " },
|
{ Text = "upgrades:" .. helpers.get_outdated_packages() .. " " },
|
||||||
{ Text = "bat:" .. helpers.get_primary_battery_state() .. " " },
|
{ Text = "bat:" .. helpers.get_primary_battery_state() .. " " },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue