aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/users/fcuny/dev.nix103
1 files changed, 57 insertions, 46 deletions
diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix
index 796fb22..9b2408b 100644
--- a/nix/users/fcuny/dev.nix
+++ b/nix/users/fcuny/dev.nix
@@ -25,58 +25,69 @@
wireshark
];
- programs.alacritty = {
+ # https://wezterm.org/config/lua/general.html
+ programs.wezterm = {
enable = true;
- settings = {
- cursor = {
- style = "Block";
- };
+ extraConfig = ''
+ local config = {}
+ if wezterm.config_builder then
+ config = wezterm.config_builder()
+ end
- window = {
- opacity = 1.0;
- padding = {
- x = 2;
- y = 2;
- };
- };
+ config.color_scheme = 'Night Owlish Light'
+
+ config.scrollback_lines = 10000
+
+ config.font = wezterm.font("Source Code Pro")
+ config.font_size = 16.0
- font = {
- normal = {
- family = "Source Code Pro";
- style = "Regular";
- };
- size = 16;
+ 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',
};
- 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";
- };
+ 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"
+
+ -- 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
+
+ return config
+ '';
};
programs.go = {