adds zoom status to tab bar
This commit is contained in:
parent
192ae592bc
commit
63a0fc9af6
2 changed files with 16 additions and 5 deletions
|
|
@ -5,17 +5,15 @@ local helpers = require("helpers")
|
|||
local M = {}
|
||||
|
||||
local function get_elements(for_window)
|
||||
local active_pane = for_window:active_pane()
|
||||
|
||||
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 = "h:" .. wezterm.hostname() .. " " },
|
||||
{ Text = "upgrades:" .. helpers.get_outdated_packages() .. " " },
|
||||
{ Text = "bat:" .. helpers.get_primary_battery_state() .. " " },
|
||||
{ Background = { Color = theme.colors().tab_bar.active_tab.bg_color } },
|
||||
{ Foreground = { Color = theme.colors().tab_bar.active_tab.fg_color } },
|
||||
{ Text = helpers.get_zoomed_status(for_window) .. " " },
|
||||
{ Text = " session >> " .. for_window:active_workspace() .. " " },
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue