diff options
Diffstat (limited to 'nix/users')
| -rw-r--r-- | nix/users/fcuny/dev.nix | 52 |
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 ''; }; |
