Skip to content

Commit

Permalink
Refactor wezterm config
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Jun 3, 2024
1 parent d18c94c commit 46aa062
Showing 1 changed file with 43 additions and 32 deletions.
75 changes: 43 additions & 32 deletions home-modules/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,49 @@
programs.wezterm = {
enable = true;
enableZshIntegration = true;
extraConfig = ''
local theme = "Dracula (Official)"
local scheme = wezterm.color.get_builtin_schemes()[theme]
scheme.background = "#101116"
extraConfig =
/*
lua
*/
''
local theme = "Dracula (Official)"
local scheme = wezterm.color.get_builtin_schemes()[theme]
scheme.background = "#101116"
return {
hide_tab_bar_if_only_one_tab = true,
font = wezterm.font_with_fallback({
"Fira Code Nerd Font",
"Twemoji",
"Twitter Color Emoji",
"Symbols Nerd Font",
}),
front_end = "WebGpu",
visual_bell = {
fade_in_duration_ms = 75,
fade_out_duration_ms = 75,
target = "CursorColor",
},
audible_bell = "Disabled",
font_size = 10.0,
color_schemes = {
[theme] = scheme,
},
color_scheme = theme,
window_background_opacity = 0.8,
keys = { {
mods = "CTRL|SHIFT",
key = "Enter",
action = wezterm.action.SpawnWindow,
} },
}
'';
return {
front_end = "WebGpu",
audible_bell = "Disabled",
font_size = 10.0,
window_background_opacity = 0.85,
hide_tab_bar_if_only_one_tab = true,
font = wezterm.font_with_fallback({
"Fira Code Nerd Font",
"Twemoji",
"Twitter Color Emoji",
"Symbols Nerd Font",
}),
visual_bell = {
fade_in_duration_ms = 75,
fade_out_duration_ms = 75,
target = "CursorColor",
},
color_scheme = theme,
color_schemes = {
[theme] = scheme,
},
keys = {
{
key = "Enter",
mods = "CTRL|SHIFT",
action = wezterm.action.SpawnWindow,
},
},
}
'';
};
}

0 comments on commit 46aa062

Please sign in to comment.