aboutsummaryrefslogtreecommitdiff
path: root/.config/wezterm/wezterm.lua
blob: 0cd46b626eb8195b5aba68afb63af06b35d4aaab (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
local wezterm = require "wezterm"

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

C = {
    fg = "#dfe2e7",
    bg = "#222831",
    fg_dark = "#8893a5",
    bg_dark = "#1e232b",

    black = "#252c36",
    red = "#de615c",
    green = "#91d89a",
    yellow = "#ffc469",
    blue = "#8fc7ff",
    pink = "#f2b9c1",
    cyan = "#9cfdff",
    white = "#dfe2e7",

    bright = {
        black = "#2c3440",
        red = "#e8908d",
        green = "#b2e4b8",
        yellow = "#ffd696",
        blue = "#b1d8ff",
        pink = "#f6ced4",
        cyan = "#bafeff",
        white = "#e9ebee",
    }
}


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
    },
    R "appearance",
    R "keys"
)
-- return {}