local wezterm = require("wezterm") local helpers = require("helpers") local M = {} local function get_elements(for_window) return { { Background = { Color = "#0d0e1c" } }, { Text = "h:" .. wezterm.hostname() .. " " }, { Text = "u:" .. helpers.get_outdated_packages() .. " " }, { Text = "b:" .. helpers.get_primary_battery_state() .. " " }, { Background = { Color = "#1d2235" } }, { Text = " " .. helpers.get_zoomed_status(for_window) .. " " }, { Text = "s:" .. for_window:active_workspace() .. " " }, } end wezterm.on("update-right-status", function(window, _) window:set_right_status(wezterm.format(get_elements(window))) end) function M.apply_to_config(config) config.enable_tab_bar = true config.use_fancy_tab_bar = true config.tab_bar_at_bottom = false config.window_frame = { inactive_titlebar_bg = "#0d0e1c", active_titlebar_bg = "#0d0e1c", font = wezterm.font({ family = "Victor Mono", weight = "Bold" }), } config.colors = { tab_bar = { active_tab = { bg_color = "#0d0e1c", fg_color = "#ffffff", }, inactive_tab = { bg_color = "#0d0e1c", fg_color = "#989898", }, inactive_tab_hover = { fg_color = "#ffffff", bg_color = "#0d0e1c", }, new_tab = { bg_color = "#0d0e1c", fg_color = "#989898", }, new_tab_hover = { bg_color = "#0d0e1c", fg_color = "#ffffff", }, }, } end return M