aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-06-09 17:18:34 -0700
committerFranck Cuny <franck@fcuny.net>2025-06-09 17:18:34 -0700
commit6216c851d05ca77b6d0dd7fb743897b72057e9c3 (patch)
treebe2469e50915cd4b00b42b82b800eb63bf28d10e /nix
parentuse agenix to manage some secrets (diff)
downloadinfra-6216c851d05ca77b6d0dd7fb743897b72057e9c3.tar.gz
tweak a bit wezterm
Diffstat (limited to 'nix')
-rw-r--r--nix/users/fcuny/dev.nix52
1 files changed, 37 insertions, 15 deletions
diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix
index 9b2408b..d85d2c1 100644
--- a/nix/users/fcuny/dev.nix
+++ b/nix/users/fcuny/dev.nix
@@ -34,20 +34,26 @@
config = wezterm.config_builder()
end
- config.color_scheme = 'Night Owlish Light'
+ config.color_scheme = 'Catppuccin Macchiato'
config.scrollback_lines = 10000
config.font = wezterm.font("Source Code Pro")
- config.font_size = 16.0
+ config.font_size = 14.0
+ config.line_height = 1.0
- config.window_padding = {
- left = 10,
- right = 10,
- top = 10,
- bottom = 10
+ config.window_frame = {
+ font = wezterm.font({ family = 'Source Code Pro', weight = 'Bold' }),
+ font_size = 11.0,
}
+ config.bold_brightens_ansi_colors = true
+ config.window_decorations = 'RESIZE|INTEGRATED_BUTTONS'
+ config.window_padding = { left = '0.5cell', right = '0.5cell', top = '0.5cell', bottom = '0.5cell' }
+ config.window_background_opacity = 0.97
+ config.macos_window_background_blur = 30
+ config.default_cursor_style = 'BlinkingBar'
+
local act = wezterm.action
config.keys = {
-- Override CMD+t to always start new tabs in the home directory.
@@ -61,14 +67,6 @@
target = 'CursorColor',
};
- config.hide_tab_bar_if_only_one_tab = true
- config.use_fancy_tab_bar = true
- config.tab_bar_at_bottom = true
- config.inactive_pane_hsb = {
- saturation = 0.0,
- brightness = 1.0,
- };
-
config.term = "xterm-256color"
config.front_end = "WebGpu"
@@ -86,6 +84,30 @@
-- Since we're managing the binary with nix, no need for this
config.check_for_updates = false
+ wezterm.on('update-status', function(window)
+ -- Grab the utf8 character for the "powerline" left facing
+ -- solid arrow.
+ local SOLID_LEFT_ARROW = utf8.char(0xe0b2)
+
+ -- Grab the current window's configuration, and from it the
+ -- palette (this is the combination of your chosen colour scheme
+ -- including any overrides).
+ local color_scheme = window:effective_config().resolved_palette
+ local bg = color_scheme.background
+ local fg = color_scheme.foreground
+
+ window:set_right_status(wezterm.format({
+ -- First, we draw the arrow...
+ { Background = { Color = 'none' } },
+ { Foreground = { Color = bg } },
+ { Text = SOLID_LEFT_ARROW },
+ -- Then we draw our text
+ { Background = { Color = bg } },
+ { Foreground = { Color = fg } },
+ { Text = ' ' .. wezterm.hostname() .. ' ' },
+ }))
+ end)
+
return config
'';
};