feat(wezterm): simplify, switch font

This commit is contained in:
winston 2023-11-02 17:10:58 +01:00
parent b24ce90956
commit 696478498a
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 15 additions and 12 deletions

View file

@ -19,6 +19,7 @@
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];}) (nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
cascadia-code
victor-mono victor-mono
ibm-plex ibm-plex
xkcd-font xkcd-font

View file

@ -14,13 +14,9 @@ local map = function(key, mods, action)
end end
end end
if wezterm.GLOBAL.enable_tab_bar == nil then
wezterm.GLOBAL.enable_tab_bar = true
end
local toggleTabBar = wezterm.action_callback(function(window) local toggleTabBar = wezterm.action_callback(function(window)
wezterm.GLOBAL.enable_tab_bar = not wezterm.GLOBAL.enable_tab_bar
window:set_config_overrides({ window:set_config_overrides({
enable_tab_bar = wezterm.GLOBAL.enable_tab_bar, enable_tab_bar = not window:effective_config().enable_tab_bar,
}) })
end) end)

View file

@ -1,18 +1,24 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
local c = wezterm.config_builder() local c = wezterm.config_builder()
require("keys").apply(c) require("keys").apply(c)
c.font = wezterm.font_with_fallback({ "Berkeley Mono", "Symbols Nerd Font" }) c.font = wezterm.font_with_fallback({
"Cascadia Code",
"Symbols Nerd Font",
})
c.font_size = 13
c.harfbuzz_features = { "calt=1", "ss01=1" }
c.command_palette_font_size = c.font_size * 1.1
c.window_frame = {
font = wezterm.font("IBM Plex Sans"),
font_size = c.font_size,
}
c.window_decorations = "RESIZE" c.window_decorations = "RESIZE"
c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 } c.window_padding = { left = 0, right = 0, top = 20, bottom = 0 }
c.inactive_pane_hsb = { saturation = 1.0, brightness = 0.8 }
c.adjust_window_size_when_changing_font_size = false c.adjust_window_size_when_changing_font_size = false
c.audible_bell = "Disabled" c.audible_bell = "Disabled"
c.clean_exit_codes = { 130 }
c.default_cursor_style = "BlinkingBar" c.default_cursor_style = "BlinkingBar"
c.command_palette_font_size = 13.0 c.inactive_pane_hsb = { brightness = 0.90 }
c.window_frame = { font_size = 13.0 }
wezterm.plugin wezterm.plugin
.require("https://github.com/catppuccin/wezterm") .require("https://github.com/catppuccin/wezterm")