From e3f0382023daa8796150a0923c737beec6e72342 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 31 May 2025 18:27:02 -0400 Subject: Add wezterm config --- wezterm/wezterm.lua | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 wezterm/wezterm.lua (limited to 'wezterm/wezterm.lua') diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua new file mode 100644 index 0000000..928357c --- /dev/null +++ b/wezterm/wezterm.lua @@ -0,0 +1,41 @@ +local wezterm = require 'wezterm' + +local config = wezterm.config_builder() + +config.window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, +} + +config.font_size = 12 + +-- tab +config.use_fancy_tab_bar = false +config.hide_tab_bar_if_only_one_tab = true + +-- window scheme/appeance +require('colorscheme').apply_to_config(config) +config.window_background_opacity = 0.75 + +-- bell settings +config.visual_bell = { + fade_in_function = 'EaseIn', + fade_in_duration_ms = 150, + fade_out_function = 'EaseOut', + fade_out_duration_ms = 150, +} + +wezterm.on('bell', function(_, pane) + if pane:has_unseen_output() then + os.execute(table.concat({ + "notify-send", "-a wezterm", + '"WezTerm: Bell Rung"', + '"' .. pane:get_title() .. '"', + }, " ") + ) + end +end) + +return config -- cgit v1.2.3