From 59a5acde4140a51588c28fa36f8f4d45b5458d6f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 16 May 2025 17:38:08 -0700 Subject: switch from wezterm to alacritty again --- nix/users/fcuny/dev.nix | 103 +++++++++++++++++++++--------------------------- 1 file changed, 46 insertions(+), 57 deletions(-) (limited to 'nix') diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix index 9b2408b..796fb22 100644 --- a/nix/users/fcuny/dev.nix +++ b/nix/users/fcuny/dev.nix @@ -25,69 +25,58 @@ wireshark ]; - # https://wezterm.org/config/lua/general.html - programs.wezterm = { + programs.alacritty = { enable = true; - extraConfig = '' - local config = {} - if wezterm.config_builder then - config = wezterm.config_builder() - end - - config.color_scheme = 'Night Owlish Light' - - config.scrollback_lines = 10000 - - config.font = wezterm.font("Source Code Pro") - config.font_size = 16.0 - - config.window_padding = { - left = 10, - right = 10, - top = 10, - bottom = 10 - } - - local act = wezterm.action - config.keys = { - -- Override CMD+t to always start new tabs in the home directory. - { key = 't', mods = 'SUPER', action = act.SpawnCommandInNewTab { cwd = wezterm.home_dir } }, - } - - config.audible_bell = "Disabled" - config.visual_bell = { - fade_in_duration_ms = 75, - fade_out_duration_ms = 75, - target = 'CursorColor', + settings = { + cursor = { + style = "Block"; }; - 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, + window = { + opacity = 1.0; + padding = { + x = 2; + y = 2; + }; }; - config.term = "xterm-256color" - - config.front_end = "WebGpu" - - -- in order to access menu bar when in fullscreen - config.native_macos_fullscreen_mode = true - - -- select the pane with the mouse - config.pane_focus_follows_mouse = true - - -- Set initial size - config.initial_cols = 120 - config.initial_rows = 36 - - -- Since we're managing the binary with nix, no need for this - config.check_for_updates = false + font = { + normal = { + family = "Source Code Pro"; + style = "Regular"; + }; + size = 16; + }; - return config - ''; + colors = { + primary = { + background = "0x1f2528"; + foreground = "0xc0c5ce"; + }; + + normal = { + black = "0x1f2528"; + red = "0xec5f67"; + green = "0x99c794"; + yellow = "0xfac863"; + blue = "0x6699cc"; + magenta = "0xc594c5"; + cyan = "0x5fb3b3"; + white = "0xc0c5ce"; + }; + + bright = { + black = "0x65737e"; + red = "0xec5f67"; + green = "0x99c794"; + yellow = "0xfac863"; + blue = "0x6699cc"; + magenta = "0xc594c5"; + cyan = "0x5fb3b3"; + white = "0xd8dee9"; + }; + }; + }; }; programs.go = { -- cgit v1.2.3