lilipod broken; theme wezterm tabbar with stylix

This commit is contained in:
William 2024-09-18 21:10:01 -03:00
parent b2ff93693a
commit bbd092c80d
2 changed files with 72 additions and 77 deletions

View file

@ -34,7 +34,7 @@ in {
krita krita
libfido2 libfido2
libreoffice-qt libreoffice-qt
lilipod # lilipod
mangohud mangohud
microsoft-edge microsoft-edge
mission-center mission-center

View file

@ -1,86 +1,81 @@
{ 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 = ''
local act = wezterm.action local act = wezterm.action
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 110
return 110 elseif hostname == "io" then
elseif hostname == "io" then return 89
return 89 else
else return 110
return 110
end
end end
end
return { return {
disable_default_key_bindings = true, disable_default_key_bindings = true,
use_fancy_tab_bar = true, colors = {
window_frame = { tab_bar = {
active_titlebar_bg = '#303446', background = '${tabbar-background}',
inactive_titlebar_bg = '#303446', 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}', },
}, },
colors = { },
tab_bar = { window_frame = {
background = '#303446', active_titlebar_bg = '${tabbar-background}',
active_tab = { inactive_titlebar_bg = '${tabbar-background}',
bg_color = '#1e1e2e', },
fg_color = '#9197b0', use_fancy_tab_bar = true,
}, initial_cols = get_initial_cols_by_hostname(),
inactive_tab = { initial_rows = 32,
bg_color = '#303446', inactive_pane_hsb = {
fg_color = '#9197b0' saturation = 0.7,
}, brightness = 0.5
inactive_tab_edge = '#303062', },
new_tab = { bg_color = "#303446", fg_color = "#9197b0", }, hide_tab_bar_if_only_one_tab = false,
new_tab_hover = { bg_color = "#9197b0", fg_color = "#303446", }, show_new_tab_button_in_tab_bar = true,
}, front_end = "WebGpu",
}, keys = {
initial_cols = get_initial_cols_by_hostname(), { key = 'Tab', mods = 'CTRL', action = act.ActivateTabRelative(1) },
initial_rows = 32, { key = 'Tab', mods = 'SHIFT|CTRL', action = act.ActivateTabRelative(-1) },
enable_scroll_bar = true, { key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen },
inactive_pane_hsb = { { key = ':', mods = 'SHIFT|CTRL', action = act.SplitVertical{ domain = 'CurrentPaneDomain' } },
saturation = 0.7, { key = '?', mods = 'SHIFT|CTRL', action = act.SplitHorizontal{ domain = 'CurrentPaneDomain' } },
brightness = 0.5 { key = '+', mods = 'CTRL', action = act.IncreaseFontSize },
}, { key = '=', mods = 'CTRL', action = act.IncreaseFontSize },
hide_tab_bar_if_only_one_tab = false, { key = '-', mods = 'CTRL', action = act.DecreaseFontSize },
show_new_tab_button_in_tab_bar = true, { key = '_', mods = 'SHIFT|CTRL', action = act.DecreaseFontSize },
front_end = "WebGpu", { key = '0', mods = 'CTRL', action = act.ResetFontSize },
keys = { { key = 'C', mods = 'SHIFT|CTRL', action = act.CopyTo 'Clipboard' },
{ key = 'Tab', mods = 'CTRL', action = act.ActivateTabRelative(1) }, { key = 'F', mods = 'SHIFT|CTRL', action = act.Search 'CurrentSelectionOrEmptyString' },
{ key = 'Tab', mods = 'SHIFT|CTRL', action = act.ActivateTabRelative(-1) }, { key = 'B', mods = 'SHIFT|CTRL', action = act.ClearScrollback 'ScrollbackOnly' },
{ key = 'Enter', mods = 'ALT', action = act.ToggleFullScreen }, { key = 'R', mods = 'SHIFT|CTRL', action = act.ReloadConfiguration },
{ key = ':', mods = 'SHIFT|CTRL', action = act.SplitVertical{ domain = 'CurrentPaneDomain' } }, { key = 'T', mods = 'SHIFT|CTRL', action = act.SpawnTab 'CurrentPaneDomain' },
{ key = '?', mods = 'SHIFT|CTRL', action = act.SplitHorizontal{ domain = 'CurrentPaneDomain' } }, { key = 'V', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' },
{ key = '+', mods = 'CTRL', action = act.IncreaseFontSize }, { key = 'W', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = true } },
{ key = '=', mods = 'CTRL', action = act.IncreaseFontSize }, { key = 'PageUp', mods = 'SHIFT', action = act.ScrollByPage(-1) },
{ key = '-', mods = 'CTRL', action = act.DecreaseFontSize }, { key = 'PageUp', mods = 'CTRL', action = act.ActivateTabRelative(-1) },
{ key = '_', mods = 'SHIFT|CTRL', action = act.DecreaseFontSize }, { key = 'PageUp', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(-1) },
{ key = '0', mods = 'CTRL', action = act.ResetFontSize }, { key = 'PageDown', mods = 'SHIFT', action = act.ScrollByPage(1) },
{ key = 'C', mods = 'SHIFT|CTRL', action = act.CopyTo 'Clipboard' }, { key = 'PageDown', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'F', mods = 'SHIFT|CTRL', action = act.Search 'CurrentSelectionOrEmptyString' }, { key = 'PageDown', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(1) },
{ key = 'B', mods = 'SHIFT|CTRL', action = act.ClearScrollback 'ScrollbackOnly' }, { key = 'H', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Left' },
{ key = 'R', mods = 'SHIFT|CTRL', action = act.ReloadConfiguration }, { key = 'L', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Right' },
{ key = 'T', mods = 'SHIFT|CTRL', action = act.SpawnTab 'CurrentPaneDomain' }, { key = 'K', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Up' },
{ key = 'V', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' }, { key = 'J', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Down' },
{ key = 'W', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = true } }, { key = 'P', mods = 'SHIFT|CTRL', action = act.ActivateCommandPalette },
{ key = 'PageUp', mods = 'SHIFT', action = act.ScrollByPage(-1) }, },
{ key = 'PageUp', mods = 'CTRL', action = act.ActivateTabRelative(-1) }, }
{ key = 'PageUp', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(-1) },
{ key = 'PageDown', mods = 'SHIFT', action = act.ScrollByPage(1) },
{ key = 'PageDown', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'PageDown', mods = 'SHIFT|CTRL', action = act.MoveTabRelative(1) },
{ key = 'H', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Left' },
{ key = 'L', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Right' },
{ key = 'K', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Up' },
{ key = 'J', mods = 'SHIFT|CTRL', action = act.ActivatePaneDirection 'Down' },
{ key = 'P', mods = 'SHIFT|CTRL', action = act.ActivateCommandPalette },
},
}
''; '';
}; };
} }