implements custom wezterm scheme

This commit is contained in:
Dennis Schoepf 2025-11-03 10:42:55 +01:00
parent 2c80558d2e
commit 0827a2984a
4 changed files with 91 additions and 15 deletions

View file

@ -1,15 +1,16 @@
local wezterm = require("wezterm")
local helpers = require("helpers")
local theme = require("theme")
local M = {}
local function get_elements(for_window)
return {
{ Background = { Color = "#0d0e1c" } },
{ Background = { Color = theme.palette.bg } },
{ Text = "h:" .. wezterm.hostname() .. " " },
{ Text = "u:" .. helpers.get_outdated_packages() .. " " },
{ Text = "b:" .. helpers.get_primary_battery_state() .. " " },
{ Background = { Color = "#1d2235" } },
{ Background = { Color = theme.palette.bg_secondary } },
{ Text = " " .. helpers.get_zoomed_status(for_window) .. " " },
{ Text = "s:" .. for_window:active_workspace() .. " " },
}
@ -25,32 +26,32 @@ function M.apply_to_config(config)
config.tab_bar_at_bottom = false
config.window_frame = {
inactive_titlebar_bg = "#0d0e1c",
active_titlebar_bg = "#0d0e1c",
inactive_titlebar_bg = theme.palette.bg,
active_titlebar_bg = theme.palette.bg,
font = wezterm.font({ family = "Victor Mono", weight = "Bold" }),
}
config.colors = {
tab_bar = {
active_tab = {
bg_color = "#0d0e1c",
fg_color = "#ffffff",
bg_color = theme.palette.bg,
fg_color = theme.palette.fg,
},
inactive_tab = {
bg_color = "#0d0e1c",
fg_color = "#989898",
bg_color = theme.palette.bg,
fg_color = theme.palette.grey,
},
inactive_tab_hover = {
fg_color = "#ffffff",
bg_color = "#0d0e1c",
fg_color = theme.palette.fg,
bg_color = theme.palette.bg,
},
new_tab = {
bg_color = "#0d0e1c",
fg_color = "#989898",
bg_color = theme.palette.bg,
fg_color = theme.palette.grey,
},
new_tab_hover = {
bg_color = "#0d0e1c",
fg_color = "#ffffff",
bg_color = theme.palette.bg,
fg_color = theme.palette.fg,
},
},
}