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" }
|
|
|
|
|
2023-04-03 02:07:47 +00:00
|
|
|
-- 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
|
|
|
|
|
2023-07-02 09:18:56 +00:00
|
|
|
-- 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
|