Add wezterm dotfiles

This commit is contained in:
Marvin Elsen 2024-08-30 09:32:51 +02:00
parent c1f1491d6b
commit 3193589c51
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2
2 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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