From 3193589c518154ec19e115107ca9bd41eb71793b Mon Sep 17 00:00:00 2001 From: Marvin Elsen Date: Fri, 30 Aug 2024 09:32:51 +0200 Subject: [PATCH] Add wezterm dotfiles --- wezterm/.config/wezterm/appearance.lua | 12 +++++++++++ wezterm/.config/wezterm/wezterm.lua | 28 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 wezterm/.config/wezterm/appearance.lua create mode 100644 wezterm/.config/wezterm/wezterm.lua diff --git a/wezterm/.config/wezterm/appearance.lua b/wezterm/.config/wezterm/appearance.lua new file mode 100644 index 0000000..990887e --- /dev/null +++ b/wezterm/.config/wezterm/appearance.lua @@ -0,0 +1,12 @@ +local wezterm = require 'wezterm' + +local module = {} + +function module.is_dark() + if wezterm.gui then + return wezterm.gui.get_appearance():find("Dark") + end + return true +end + +return module diff --git a/wezterm/.config/wezterm/wezterm.lua b/wezterm/.config/wezterm/wezterm.lua new file mode 100644 index 0000000..e86ab40 --- /dev/null +++ b/wezterm/.config/wezterm/wezterm.lua @@ -0,0 +1,28 @@ +local wezterm = require 'wezterm' +local appearance = require 'appearance' + +local config = wezterm.config_builder() + +-- https://wezfurlong.org/wezterm/colorschemes/index.html + +-- if appearance.is_dark() then + config.color_scheme = 'Catppuccin Mocha' + +-- else +-- config.color_scheme = 'Catppuccin Latte' +--end + +config.font = wezterm.font({ family = 'FantasqueSansM Nerd Font' }) +config.font_size = 14 + +-- config.window_background_opacity = 1 +-- config.macos_window_background_blur = 30 +config.window_decorations = 'RESIZE|INTEGRATED_BUTTONS' +config.window_frame = { + font = wezterm.font({ family = 'FantasqueSansM Nerd Font', weight = 'Bold' }), + font_size = 14 +} + +config.default_prog = { '/opt/homebrew/bin/fish', '-li' } + +return config