uses modus themes where possible

This commit is contained in:
Dennis 2025-09-18 13:11:54 +02:00
parent b9e03a6f29
commit 87c990bf2a
6 changed files with 85 additions and 103 deletions

View file

@ -1,20 +1,17 @@
local wezterm = require("wezterm")
local theme = wezterm.plugin.require("https://github.com/neapsix/wezterm").main
local helpers = require("helpers")
local M = {}
local function get_elements(for_window)
return {
{ Background = { Color = theme.colors().tab_bar.background } },
{ Foreground = { Color = theme.colors().tab_bar.inactive_tab.fg_color } },
{ Background = { Color = "#0d0e1c" } },
{ 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 = "u:" .. helpers.get_outdated_packages() .. " " },
{ Text = "b:" .. helpers.get_primary_battery_state() .. " " },
{ Background = { Color = "#1d2235" } },
{ Text = " " .. helpers.get_zoomed_status(for_window) .. " " },
{ Text = "session >> " .. for_window:active_workspace() .. " " },
{ Text = "s:" .. for_window:active_workspace() .. " " },
}
end
@ -28,13 +25,34 @@ function M.apply_to_config(config)
config.tab_bar_at_bottom = false
config.window_frame = {
inactive_titlebar_bg = theme.colors().tab_bar.background,
active_titlebar_bg = theme.colors().tab_bar.background,
inactive_titlebar_bg = "#0d0e1c",
active_titlebar_bg = "#0d0e1c",
font = wezterm.font({ family = "Victor Mono", weight = "Bold" }),
}
config.colors = {
tab_bar = theme.colors().tab_bar,
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