Fix wezterm tab colors

This commit is contained in:
Daniel Flanagan 2024-03-27 11:06:26 -05:00
parent 1b3e043e42
commit 57f9e3deba
3 changed files with 57 additions and 1 deletions

View file

@ -33,6 +33,9 @@
(defwidget sidestuff [] (defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :spacing 20 (box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :spacing 20
time 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: idle inhibitor?
; TODO: battery time remaining? ; TODO: battery time remaining?
; TODO: hyprland workspaces? ; TODO: hyprland workspaces?

View file

@ -4,6 +4,7 @@
colors, colors,
... ...
}: { }: {
# docs: https://wezfurlong.org/wezterm/config/appearance.html#defining-your-own-colors
programs.wezterm = with colors.withHashPrefix; { programs.wezterm = with colors.withHashPrefix; {
enable = true; enable = true;
extraConfig = builtins.readFile ./wezterm/config.lua; extraConfig = builtins.readFile ./wezterm/config.lua;
@ -18,6 +19,56 @@
cursor_fg = bg; cursor_fg = bg;
cursor_bg = text; cursor_bg = text;
cursor_border = 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' },
}; };
}; };
}; };

View file

@ -17,9 +17,10 @@ config.default_cursor_style = 'BlinkingBar'
-- config.disable_default_key_bindings = true -- config.disable_default_key_bindings = true
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.use_fancy_tab_bar = false 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.window_background_opacity = 1.0
config.enable_kitty_keyboard = true config.enable_kitty_keyboard = true
config.show_new_tab_button_in_tab_bar = true
local function tab_title(tab_info) local function tab_title(tab_info)
local title = tab_info.tab_title 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) .. ' ' return ' ' .. string.sub(title, 0, max_width - 2) .. ' '
end) end)
-- see nix module which has home manager create this color scheme file
config.color_scheme = 'catppuccin-mocha-sapphire'; config.color_scheme = 'catppuccin-mocha-sapphire';
config.inactive_pane_hsb = { config.inactive_pane_hsb = {