dotfiles/wezterm/config/base.lua

43 lines
1.1 KiB
Lua
Raw Normal View History

2023-03-22 11:20:01 +00:00
-- A local jumpstart for creating my base configuration.
local module = {}
local wezterm = require("wezterm")
function module.apply_to_config(config)
config.default_prog = { "bash" }
-- Quick select-related options. Quite similar to Kitty hints which is
-- nice.
config.quick_select_patterns = {
"[0-9a-f]{7,40}", -- SHA1 hashes, usually used for Git.
"[0-9a-f]{7,64}", -- SHA256 hashes, used often for getting hashes for Guix packaging.
"sha256-.{44,128}", -- SHA256 hashes in Base64, used often in getting hashes for Nix packaging.
}
2023-03-22 11:20:01 +00:00
-- Don't tease me with the upcoming releases, man.
config.check_for_updates = false
-- Enable some things for Wayland.
config.enable_wayland = true
config.force_reverse_video_cursor = true
-- Use some IME.
config.use_ime = true
-- Set up the visual bell.
config.audible_bell = "SystemBeep"
config.visual_bell = {
fade_in_function = 'EaseIn',
fade_in_duration_ms = 75,
fade_out_function = 'EaseOut',
fade_out_duration_ms = 75,
}
2023-03-22 11:20:01 +00:00
return config
end
-- The keymod to be used for the entire configuration.
module.keymod = "CTRL|SHIFT"
return module