-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwezterm.lua
More file actions
89 lines (77 loc) · 2.24 KB
/
wezterm.lua
File metadata and controls
89 lines (77 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
-- _ _ _ _ __ ___ _ _
-- | | | | | | | | / / / _ \ | | | |
-- | | ___ | |_ | |__ __ _ _ __ | |/ / / /_\ \| |_ | |_
-- | | / _ \ | __|| '_ \ / _` || '__|| \ | _ || __|| __|
-- | |____| (_) || |_ | | | || (_| || | | |\ \| | | || |_ | |_
-- \_____/ \___/ \__||_| |_| \__,_||_| \_| \_/\_| |_/ \__| \__|
--
-- Author: Pavel 'LotharKAtt' Cizinsky
-- Repository: github.com/LotharKAtt/DotFiles
-- wezterm config file (https://github.com/wez/wezterm)
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- Color schema
-- https://wezfurlong.org/wezterm/colorschemes/t/index.html#tokyo-night-day
config.color_scheme = 'Tokyo Night Day'
config.font_size = 18
config.enable_csi_u_key_encoding = true
-- Disable tabs
config.enable_tab_bar = false
-- Disable the audible bell
config.audible_bell = "Disabled" -- Disable|SystemBeep
-- Disable close clonfirmation
config.window_close_confirmation = "NeverPrompt" -- AlwaysPrompt|NeverPrompt
-- Decoration
config.window_decorations = "RESIZE"
config.window_background_opacity = 0.95
config.macos_window_background_blur = 10
-- Hyperlink fix
config.hyperlink_rules = {
-- Matches: a URL in parens: (URL)
{
regex = '\\((\\w+://\\S+)\\)',
format = '$1',
highlight = 1,
},
-- Matches: a URL in brackets: [URL]
{
regex = '\\[(\\w+://\\S+)\\]',
format = '$1',
highlight = 1,
},
-- Matches: a URL in curly braces: {URL}
{
regex = '\\{(\\w+://\\S+)\\}',
format = '$1',
highlight = 1,
},
-- Matches: a URL in angle brackets: <URL>
{
regex = '<(\\w+://\\S+)>',
format = '$1',
highlight = 1,
},
-- Then handle URLs not wrapped in brackets
{
-- Before
--regex = '\\b\\w+://\\S+[)/a-zA-Z0-9-]+',
--format = '$0',
-- After
regex = '[^(]\\b(\\w+://\\S+[)/a-zA-Z0-9-]+)',
format = '$1',
highlight = 1,
},
-- implicit mailto link
{
regex = '\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b',
format = 'mailto:$0',
},
}
-- Performance
config.animation_fps = 1
config.max_fps = 60
config.scrollback_lines = 10000
return config