Wezterm tabbar now gets themed by stylix
This commit is contained in:
parent
12f86740ac
commit
747bda0f19
1 changed files with 62 additions and 79 deletions
|
|
@ -1,10 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
tabbar-background = config.lib.stylix.colors.withHashtag.base01;
|
|
||||||
active-tab-background = config.lib.stylix.colors.withHashtag.base00;
|
|
||||||
foreground = config.lib.stylix.colors.withHashtag.base05;
|
|
||||||
in {
|
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
@ -12,36 +8,23 @@ in {
|
||||||
local function get_initial_cols_by_hostname()
|
local function get_initial_cols_by_hostname()
|
||||||
local hostname = wezterm.hostname()
|
local hostname = wezterm.hostname()
|
||||||
if hostname == "rotterdam" then
|
if hostname == "rotterdam" then
|
||||||
return 116
|
return 111
|
||||||
elseif hostname == "io" then
|
elseif hostname == "io" then
|
||||||
return 93
|
return 93
|
||||||
else
|
else
|
||||||
return 110
|
return 100
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
disable_default_key_bindings = true,
|
disable_default_key_bindings = true,
|
||||||
window_padding = {
|
window_padding = {
|
||||||
left = 0,
|
left = "2pt",
|
||||||
right = 0,
|
right = "2pt",
|
||||||
bottom = 0,
|
bottom = 0,
|
||||||
top = 0,
|
top = 0,
|
||||||
},
|
},
|
||||||
colors = {
|
|
||||||
tab_bar = {
|
|
||||||
background = '${tabbar-background}',
|
|
||||||
active_tab = { bg_color = '${active-tab-background}', fg_color = '${foreground}', },
|
|
||||||
inactive_tab = { bg_color = '${tabbar-background}', fg_color = '${foreground}', },
|
|
||||||
inactive_tab_edge = '${tabbar-background}',
|
|
||||||
new_tab = { bg_color = '${tabbar-background}', fg_color = '${foreground}', },
|
|
||||||
new_tab_hover = { bg_color = '${foreground}', fg_color = '${tabbar-background}', },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
window_frame = {
|
|
||||||
active_titlebar_bg = '${tabbar-background}',
|
|
||||||
inactive_titlebar_bg = '${tabbar-background}',
|
|
||||||
},
|
|
||||||
use_fancy_tab_bar = true,
|
use_fancy_tab_bar = true,
|
||||||
|
command_palette_font_size = 12,
|
||||||
initial_cols = get_initial_cols_by_hostname(),
|
initial_cols = get_initial_cols_by_hostname(),
|
||||||
initial_rows = 32,
|
initial_rows = 32,
|
||||||
inactive_pane_hsb = {
|
inactive_pane_hsb = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue