summaryrefslogtreecommitdiff
path: root/.config/wezterm/wezterm.lua
blob: 739155f9d011360e333cde069f5e265b7f5aaac5 (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
local wezterm = require 'wezterm'

local dark = require 'dark-scheme'
local bright = require 'bright-scheme'

local conf = {}

function get_appearance()
  if wezterm.gui then
    return wezterm.gui.get_appearance()
  end
  return 'Dark'
end

function colors_for_appearance(appearance)
  if appearance:find 'Dark' then
    return dark
  else
    return bright
  end
end

conf.colors = colors_for_appearance(get_appearance())
conf.font = wezterm.font "Fira Code"
conf.hide_tab_bar_if_only_one_tab = true
conf.font_size = 15
conf.window_padding = {
  left = 0,
  right = 0,
  top = 0,
  bottom = 0,
}
conf.window_close_confirmation = 'NeverPrompt'

conf.window_background_opacity = 0.999
conf.native_macos_fullscreen_mode = true

return conf