From 10d8b10c9f33f479e3576a775733e9f5eb28868d Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 7 Apr 2026 15:48:34 -0400 Subject: [PATCH] Added WezTerm, updated OMP theme's coffee cup glyph Not using the Home Manager module to manage WezTerm due to using Homebrew to install it on macOS. --- flake.lock | 6 +- modules/hosts/darwin/default.nix | 1 + modules/shared/files/wezterm/wezterm.lua | 91 ++++++++++++++++++++++++ modules/shared/home/general/all-gui.nix | 3 + 4 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 modules/shared/files/wezterm/wezterm.lua diff --git a/flake.lock b/flake.lock index 6b1a6d3..ffca018 100644 --- a/flake.lock +++ b/flake.lock @@ -261,11 +261,11 @@ "genebean-omp-themes": { "flake": false, "locked": { - "lastModified": 1736539337, - "narHash": "sha256-TBq4+E6n3t3a85FyP/4sLYFf+644rkMZ+Cn+xAj9f0k=", + "lastModified": 1775590646, + "narHash": "sha256-0kr+6Kgb6W6aRYXewqna+Qpq7PF7g5wq7rwEy6k+i2E=", "owner": "genebean", "repo": "my-oh-my-posh-themes", - "rev": "89fedccc7177301c0d5660af0f809d01a25ebf4e", + "rev": "f93d5921f624ac9a3416807a43c13918f945d5d2", "type": "github" }, "original": { diff --git a/modules/hosts/darwin/default.nix b/modules/hosts/darwin/default.nix index f2b2b72..1c182bd 100644 --- a/modules/hosts/darwin/default.nix +++ b/modules/hosts/darwin/default.nix @@ -91,6 +91,7 @@ "transmission" "visual-studio-code" "vivaldi" + "wezterm" "zoom" ]; masApps = { diff --git a/modules/shared/files/wezterm/wezterm.lua b/modules/shared/files/wezterm/wezterm.lua new file mode 100644 index 0000000..60bf957 --- /dev/null +++ b/modules/shared/files/wezterm/wezterm.lua @@ -0,0 +1,91 @@ +local wezterm = require 'wezterm' +local config = wezterm.config_builder() + +-- 1. Cross-Platform Font & Crispness +config.font = wezterm.font('Hack Nerd Font') +config.font_size = 13.0 + +config.window_decorations = "RESIZE" -- Removes the bulky macOS title bar for a cleaner look + +-- 3. Tabs & UI +config.enable_tab_bar = true +config.use_fancy_tab_bar = true -- Gives a nice, spaced-out, native-looking tab bar +config.hide_tab_bar_if_only_one_tab = false + +-- 4. The Beanbag-Mathias Theme +config.color_schemes = { + ['Beanbag-iTerm2'] = { + background = '#000000', + foreground = '#E3E3EA', + --foreground = '#BBBBBB', + + cursor_bg = '#BBBBBB', + cursor_fg = '#FFFFFF', + cursor_border = '#BBBBBB', + + selection_bg = '#B5D5FF', + selection_fg = '#000000', + + ansi = { + '#000000', -- black + '#BB0000', -- red + '#55FF55', -- green (Swapped to your Bright Neon Green) + '#BBBB00', -- yellow + '#5EA1FF', -- blue (Your custom Sky Blue) + '#BB00BB', -- magenta + '#55FFFF', -- cyan (Swapped to your Bright Neon Cyan) + '#BBBBBB', -- white + }, + brights = { + '#555555', -- bright black + '#FF5555', -- bright red + '#55FF55', -- bright green + '#FFFF55', -- bright yellow + '#82AAFF', -- bright blue (Your custom Pastel Blue) + '#FF55FF', -- bright magenta + '#55FFFF', -- bright cyan + '#FFFFFF', -- bright white + }, + }, + ['Beanbag-Mathias'] = { + foreground = '#E3E3EA', + background = '#07042B', + + cursor_bg = '#FF7F7F', + cursor_fg = '#07042B', + cursor_border = '#FF7F7F', + + selection_fg = '#FFFFFF', + selection_bg = '#000000', + + ansi = { + '#000000', -- black + '#E52222', -- red + '#55FF55', -- green + '#FC951E', -- yellow + '#C48DFF', -- blue + '#FA2573', -- magenta + '#7DF9FF', -- cyan (Electric Ice) + '#F2F2F2', -- white + }, + brights = { + '#555555', -- bright black + '#FF5555', -- bright red + '#55FF55', -- bright green + '#FFFF55', -- bright yellow + '#6CB6FF', -- bright blue (The "Icy Sky" contrast fix for ls folders!) + '#FF55FF', -- bright magenta + '#7DF9FF', -- bright cyan (Electric Ice) + '#FFFFFF', -- bright white + }, + }, +} + +-- Window Appearance (Transparency & Blur) +config.window_background_opacity = 0.87 +config.macos_window_background_blur = 10 + +-- config.color_scheme = 'Beanbag-Mathias' +config.color_scheme = 'Beanbag-iTerm2' + +return config diff --git a/modules/shared/home/general/all-gui.nix b/modules/shared/home/general/all-gui.nix index fe6406c..c615442 100644 --- a/modules/shared/home/general/all-gui.nix +++ b/modules/shared/home/general/all-gui.nix @@ -3,9 +3,12 @@ home.packages = with pkgs; [ esptool ]; + programs = { git.settings.aliases = { kraken = "!gitkraken -p $(cd \"\${1:-.}\" && git rev-parse --show-toplevel)"; }; }; + + xdg.configFile."wezterm/wezterm.lua".source = ../../files/wezterm/wezterm.lua; }