aboutsummaryrefslogtreecommitdiff
path: root/.config/wezterm/wezterm.lua
blob: 86014f6184bad23e1ff11d8fc6ccc1d01bcf23a4 (plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
local wezterm = require("wezterm")

function R(name)
	local m = require(name)
	return m
end

-- C = {
-- 	bg_dark = "#161b22",
-- 	bg = "#1b2026",
--
-- 	fg_dark = "#77828c",
-- 	fg = "#d9dfe4",
--
-- 	black = "#1f242b",
-- 	red = "#df625d",
-- 	yellow = "#fdc267",
-- 	green = "#91d89a",
-- 	blue = "#8ec6ff",
-- 	pink = "#f2b9c1",
-- 	cyan = "#77e2e3",
-- 	white = "#d9dfe4",
--
-- 	bright = {
-- 		red = "#f1726b",
-- 		black = "#242930",
-- 		yellow = "#ffd79d",
-- 		green = "#a1e9aa",
-- 		blue = "#add6ff",
-- 		pink = "#ffcbd2",
-- 		cyan = "#88f3f3",
-- 		white = "#d9dfe4",
-- 	},
-- }

function palette(colors)
    return setmetatable(colors, {
        __call = function(self)
            return self[1]
        end,
    })
end

C = {
    fg = palette {
        low = "#999fa7",
        "#b8bec7",
        high = "#d8dfe7",
    },

    bg = palette {
        lowest = "#070c11",
        low = "#0c1116",
        "#12161c",
        high = "#171c22",
        highest = "#1d2228",
    },

    border = palette {
        "#323b46",
        variant = "#262f39",
    },

    red = palette {
        "#ff928a",
        bright = "#ffb2a9",
    },
    orange = palette {
        "#ff9f6f",
        bright = "#ffc08e",
    },
    yellow = palette {
        "#ecb256",
        bright = "#ffd278",
    },
    green = palette {
        "#8bd294",
        bright = "#abf3b3",
    },
    cyan = palette {
        "#6dd3c2",
        bright = "#8ef4e2",
    },
    blue = palette {
        "#8bc3fc",
        bright = "#abe4ff",
    },
    purple = palette {
        "#c4b1f6",
        bright = "#e4d1ff",
    },
    pink = palette {
        "#e5acb4",
        bright = "#ffccd4"
    },

    transparent = "#00000000",
}

function M(...)
	local mt = {}
	for _, t in ipairs({ ... }) do
		for k, v in pairs(t) do
			mt[k] = v
		end
	end
	return mt
end

wezterm.on("bell", function()
	wezterm.background_child_process({
		"notify-send",
		"bell",
	})
end)

return M({
	window_close_confirmation = "NeverPrompt",
	check_for_updates = false,
	warn_about_missing_glyphs = false,
}, R("appearance"), R("keys"))
-- return {}