2023-05-17 17:10:18 +01:00
|
|
|
{...}: {
|
2023-05-15 11:12:17 +01:00
|
|
|
programs.wezterm = {
|
|
|
|
enable = true;
|
2023-05-16 13:05:26 +01:00
|
|
|
extraConfig = ''
|
|
|
|
local wezterm = require "wezterm"
|
|
|
|
local tab_bar_style = require "tab_bar_style"
|
2023-06-02 11:51:19 +01:00
|
|
|
local scheme_name = "tokyonight_night"
|
2023-05-17 14:17:07 +01:00
|
|
|
local scheme = require("wezterm").color.get_builtin_schemes()[scheme_name]
|
2023-05-16 13:05:26 +01:00
|
|
|
tab_bar_style.setup(scheme)
|
|
|
|
|
|
|
|
return {
|
|
|
|
audible_bell = "Disabled",
|
|
|
|
font_size = 14,
|
2023-05-26 12:45:19 +01:00
|
|
|
window_background_opacity = 0.80,
|
2023-05-16 13:05:26 +01:00
|
|
|
macos_window_background_blur = 20,
|
|
|
|
color_scheme = scheme_name,
|
|
|
|
use_fancy_tab_bar = false,
|
|
|
|
tab_max_width = 79,
|
|
|
|
tab_bar_style = { new_tab = tab_bar_style.new_tab(scheme), new_tab_hover = tab_bar_style.new_tab_hover(scheme) },
|
|
|
|
hide_tab_bar_if_only_one_tab = true,
|
|
|
|
hide_mouse_cursor_when_typing = false,
|
|
|
|
disable_default_key_bindings = true,
|
|
|
|
keys = require "keys",
|
|
|
|
key_tables = require "key_tables",
|
|
|
|
use_dead_keys = false,
|
|
|
|
enable_scroll_bar = false,
|
|
|
|
enable_wayland = true,
|
|
|
|
window_padding = {
|
|
|
|
left = 2,
|
|
|
|
right = 2,
|
|
|
|
top = 2,
|
|
|
|
bottom = 2,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
2023-05-15 11:12:17 +01:00
|
|
|
};
|
2023-05-16 13:05:26 +01:00
|
|
|
xdg.configFile."wezterm" = {
|
|
|
|
source = ./config/wezterm;
|
|
|
|
recursive = true;
|
2023-05-15 11:12:17 +01:00
|
|
|
};
|
|
|
|
}
|