forked from mislav/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wezterm.lua
36 lines (28 loc) · 871 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
-- 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
function get_appearance()
if wezterm.gui then
return wezterm.gui.get_appearance()
end
return 'Dark'
end
function scheme_for_appearance(appearance)
return 'tokyonight-storm'
-- if appearance:find 'Dark' then
-- return 'tokyonight-storm'
-- else
-- return 'Builtin Solarized Light'
-- end
end
config.color_scheme = scheme_for_appearance(get_appearance())
config.font = wezterm.font("MesloLGS Nerd Font Mono")
config.font_size = 14
config.enable_tab_bar = false
config.window_decorations = "RESIZE"
config.window_background_opacity = 0.95
config.macos_window_background_blur = 8
-- and finally, return the configuration to wezterm
return config