/
default.nix
64 lines (53 loc) · 1.82 KB
/
default.nix
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
{ ... }: {
home.file.".config/wezterm/wezterm.lua".text = ''
local wezterm = require('wezterm');
return {
-- anything in https://wezfurlong.org/wezterm/colorschemes/index.html
-- another good one: BlulocoDark
color_scheme = "Ayu Mirage",
hide_tab_bar_if_only_one_tab = true,
-- my Kinesis layout uses left alt as a hacked hyper key, and right alt for
-- an actual alt key everywhere. That means I want both of these to be
-- meta/esc.
send_composed_key_when_left_alt_is_pressed = false,
send_composed_key_when_right_alt_is_pressed = false,
use_dead_keys = false,
-- fonts
font = wezterm.font("JetBrains Mono"),
-- flare the cursor for visual bell instead of flashing the background
visual_bell = {
fade_in_duration_ms = 75,
fade_out_duration_ms = 75,
target = "CursorColor",
},
-- I never want to hear BEL, thanks
audible_bell = "Disabled",
-- turn off the title bar (it doesn't do a lot and takes up a row or two of terminal output)
window_decorations = "RESIZE",
-- copy the "normal" stuff from wezterm in, plus customizations (noted in comments)
-- https://wezfurlong.org/wezterm/hyperlinks.html
hyperlink_rules = {
-- things that look like URLs
{
regex = "\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*\\b",
format = "$0",
},
-- email addresses
{
regex = "\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b",
format = "mailto:$0",
},
-- file:// URI
{
regex = "\\bfile://\\S*\\b",
format = "$0",
},
-- Linear task IDs
{
regex = "\\b([A-Z0-9]{3}-\\d+)\\b",
format = "https://linear.app/noredink/issue/$1",
},
},
}
'';
}