dotfiles/wezterm/config/base.lua

43 lines
1.3 KiB
Lua
Raw Normal View History

2023-03-22 11:20:01 +00:00
-- A local jumpstart for creating my base configuration.
local module = {}
function module.apply_to_config(config)
-- 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.
if os.getenv "XDG_SESSION_TYPE" == "wayland" then
config.enable_wayland = true
config.force_reverse_video_cursor = true
end
2023-03-22 11:20:01 +00:00
-- Use some IME.
config.use_ime = true
-- Set up the visual bell.
config.audible_bell = "SystemBeep"
config.visual_bell = {
2023-07-08 03:36:40 +00:00
fade_in_duration_ms = 50,
fade_out_duration_ms = 50,
}
2023-03-22 11:20:01 +00:00
return config
end
2024-04-09 06:00:14 +00:00
-- The keymod to be used for the entire configuration. The purpose of the
-- keymod is to assign it as a "global modifier" for the Wezterm program since
-- usual modifiers like CTRL and ALT are typically used for programs like Vim
-- and Emacs. It's quite similar to tmux's prefix key for its keybindings.
2023-03-22 11:20:01 +00:00
module.keymod = "CTRL|SHIFT"
module.alt_keymod = "CTRL|SHIFT|ALT"
2023-03-22 11:20:01 +00:00
return module