2024-06-12 09:54:11 +07:00
|
|
|
local wezterm = require('wezterm')
|
|
|
|
|
|
|
|
local shortcuts = require('keys')
|
|
|
|
|
|
|
|
return {
|
2024-07-10 14:49:12 +07:00
|
|
|
enable_wayland = false,
|
2024-06-12 09:54:11 +07:00
|
|
|
font = wezterm.font_with_fallback({
|
|
|
|
-- 'Comic Code Ligatures',
|
|
|
|
'JetBrainsMono Nerd Font Mono',
|
|
|
|
'Noto Color Emoji',
|
|
|
|
'Material Design Icons',
|
|
|
|
'codicon',
|
|
|
|
'monospace',
|
|
|
|
}),
|
|
|
|
hide_tab_bar_if_only_one_tab = true,
|
|
|
|
use_fancy_tab_bar = false,
|
|
|
|
tab_max_width = 32,
|
|
|
|
window_close_confirmation = 'NeverPrompt',
|
|
|
|
color_scheme = 'Catppuccin Mocha',
|
|
|
|
warn_about_missing_glyphs = false,
|
|
|
|
check_for_updates = false,
|
|
|
|
ssh_domains = {
|
|
|
|
{
|
|
|
|
name = 'home',
|
2024-07-10 14:49:12 +07:00
|
|
|
remote_address = 'vpn.tigor.web.id',
|
|
|
|
username = 'homeserver',
|
2024-06-12 09:54:11 +07:00
|
|
|
ssh_option = {
|
|
|
|
identityfile = wezterm.home_dir .. '/.ssh/id_ed25519.pub',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
unix_domains = {
|
|
|
|
{
|
|
|
|
name = 'unix',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mouse_bindings = shortcuts.mouse_bindings,
|
|
|
|
leader = shortcuts.leader,
|
|
|
|
keys = shortcuts.keys,
|
|
|
|
key_tables = shortcuts.key_tables,
|
|
|
|
text_background_opacity = 1,
|
|
|
|
hyperlink_rules = {
|
|
|
|
-- Linkify things that look like URLs and the host has a TLD name.
|
|
|
|
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
|
|
|
|
{
|
|
|
|
regex = '\\b\\w+://[\\w.-]+\\.[a-z]{2,15}\\S*\\b',
|
|
|
|
format = '$0',
|
|
|
|
},
|
|
|
|
|
|
|
|
-- linkify email addresses
|
|
|
|
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
|
|
|
|
{
|
|
|
|
regex = [[\b\w+@[\w-]+(\.[\w-]+)+\b]],
|
|
|
|
format = 'mailto:$0',
|
|
|
|
},
|
|
|
|
|
|
|
|
-- file:// URI
|
|
|
|
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
|
|
|
|
{
|
|
|
|
regex = [[\bfile://\S*\b]],
|
|
|
|
format = '$0',
|
|
|
|
},
|
|
|
|
|
|
|
|
-- filename:linenumber
|
|
|
|
{
|
|
|
|
regex = [[/.*:\d+]],
|
|
|
|
format = '$0',
|
|
|
|
},
|
|
|
|
|
|
|
|
-- Linkify things that look like URLs with numeric addresses as hosts.
|
|
|
|
-- E.g. http://127.0.0.1:8000 for a local development server,
|
|
|
|
-- or http://192.168.1.1 for the web interface of many routers.
|
|
|
|
{
|
|
|
|
regex = [[\b\w+://(?:[\d]{1,3}\.){3}[\d]{1,3}\S*\b]],
|
|
|
|
format = '$0',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|