-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.wezterm.lua
39 lines (31 loc) · 965 Bytes
/
.wezterm.lua
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
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
-- wezterm.gui is not available to the mux server, so take care to
-- do something reasonable when this config is evaluated by the mux
function get_appearance()
if wezterm.gui then
return wezterm.gui.get_appearance()
end
return 'Dark'
end
function scheme_for_appearance(appearance)
if appearance:find 'Dark' then
return 'Tomorrow Night Eighties'
else
return 'Tomorrow'
end
end
-- Change the colour scheme:
config.color_scheme = scheme_for_appearance(get_appearance())
-- Tab bar at the bottom
config.tab_bar_at_bottom = true
-- Return the configuration to wezterm
return config