From 57f9e3debae610191a48b94a8e8812e55a721d01 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 27 Mar 2024 11:06:26 -0500 Subject: [PATCH] Fix wezterm tab colors --- modules/home-manager/eww/eww.yuck | 3 ++ modules/home-manager/wezterm.nix | 51 +++++++++++++++++++++++++ modules/home-manager/wezterm/config.lua | 4 +- 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/eww/eww.yuck b/modules/home-manager/eww/eww.yuck index bcf6bbe..2605922 100644 --- a/modules/home-manager/eww/eww.yuck +++ b/modules/home-manager/eww/eww.yuck @@ -33,6 +33,9 @@ (defwidget sidestuff [] (box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :spacing 20 time + ; TODO: indicator/tray/taskbar/toolbar icons and management? (probably should use something standalone?) + ; https://github.com/elkowar/eww/issues/111 + ; TODO: idle inhibitor? ; TODO: battery time remaining? ; TODO: hyprland workspaces? diff --git a/modules/home-manager/wezterm.nix b/modules/home-manager/wezterm.nix index 9fe8075..f41f51c 100644 --- a/modules/home-manager/wezterm.nix +++ b/modules/home-manager/wezterm.nix @@ -4,6 +4,7 @@ colors, ... }: { + # docs: https://wezfurlong.org/wezterm/config/appearance.html#defining-your-own-colors programs.wezterm = with colors.withHashPrefix; { enable = true; extraConfig = builtins.readFile ./wezterm/config.lua; @@ -18,6 +19,56 @@ cursor_fg = bg; cursor_bg = text; cursor_border = text; + + selection_fg = bg; + selection_bg = yellow; + + scrollbar_thumb = bg2; + + split = bg5; + + # indexed = { [136] = '#af8700' }, + tab_bar = { + background = bg3; + + active_tab = { + bg_color = primary; + fg_color = bg; + italic = false; + }; + inactive_tab = { + bg_color = bg2; + fg_color = fgdim; + italic = false; + }; + inactive_tab_hover = { + bg_color = bg3; + fg_color = primary; + italic = false; + }; + new_tab = { + bg_color = bg2; + fg_color = fgdim; + italic = false; + }; + new_tab_hover = { + bg_color = bg3; + fg_color = primary; + italic = false; + }; + }; + + compose_cursor = orange; + + # copy_mode_active_highlight_bg = { Color = '#000000' }, + # copy_mode_active_highlight_fg = { AnsiColor = 'Black' }, + # copy_mode_inactive_highlight_bg = { Color = '#52ad70' }, + # copy_mode_inactive_highlight_fg = { AnsiColor = 'White' }, + + # quick_select_label_bg = { Color = 'peru' }, + # quick_select_label_fg = { Color = '#ffffff' }, + # quick_select_match_bg = { AnsiColor = 'Navy' }, + # quick_select_match_fg = { Color = '#ffffff' }, }; }; }; diff --git a/modules/home-manager/wezterm/config.lua b/modules/home-manager/wezterm/config.lua index 1f145ab..94b5a43 100644 --- a/modules/home-manager/wezterm/config.lua +++ b/modules/home-manager/wezterm/config.lua @@ -17,9 +17,10 @@ config.default_cursor_style = 'BlinkingBar' -- config.disable_default_key_bindings = true config.hide_tab_bar_if_only_one_tab = true config.use_fancy_tab_bar = false -config.tab_bar_at_bottom = false +config.tab_bar_at_bottom = true config.window_background_opacity = 1.0 config.enable_kitty_keyboard = true +config.show_new_tab_button_in_tab_bar = true local function tab_title(tab_info) local title = tab_info.tab_title @@ -35,6 +36,7 @@ wezterm.on('format-tab-title', function (tab, _, _, _, _, max_width) return ' ' .. string.sub(title, 0, max_width - 2) .. ' ' end) +-- see nix module which has home manager create this color scheme file config.color_scheme = 'catppuccin-mocha-sapphire'; config.inactive_pane_hsb = {