From e17f3f0e97a517b2c6475d633114e806cc253662 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 2 Mar 2024 18:13:33 +0000 Subject: [PATCH] feat(terminal): configure wezterm titlebar so it looks nice When using wezterm on wayland the gnome titlebar dose not get used. The coloring of this is dark by default and dose not look good with a light background. Going forward I would like to configure this to adapt to the system light or dark settings. --- site-modules/core/files/wezterm.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/site-modules/core/files/wezterm.lua b/site-modules/core/files/wezterm.lua index c5427c2..a792420 100644 --- a/site-modules/core/files/wezterm.lua +++ b/site-modules/core/files/wezterm.lua @@ -1,5 +1,8 @@ local wezterm = require "wezterm" +local window_frame_fg = "#000000" +local window_frame_bg = "#ffffff" + return { -- Use a sexy terminal font with ligatures. --font = wezterm.font("Liga SFMono Nerd Font"), @@ -52,4 +55,17 @@ return { action = wezterm.action.SendKey { mods = "CTRL", key = "w" }, }, }, + + window_frame = { + inactive_titlebar_bg = window_frame_bg, + active_titlebar_bg = window_frame_bg, + inactive_titlebar_fg = window_frame_fg, + active_titlebar_fg = window_frame_fg, + inactive_titlebar_border_bottom = window_frame_bg, + active_titlebar_border_bottom = window_frame_bg, + button_fg = window_frame_fg, + button_bg = window_frame_bg, + button_hover_fg = window_frame_bg, + button_hover_bg = window_frame_fg, + }, }