summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/wezterm/bright-scheme.lua28
-rw-r--r--.config/wezterm/dark-scheme.lua28
-rw-r--r--.config/wezterm/wezterm.lua74
3 files changed, 90 insertions, 40 deletions
diff --git a/.config/wezterm/bright-scheme.lua b/.config/wezterm/bright-scheme.lua
new file mode 100644
index 0000000..efb0d81
--- /dev/null
+++ b/.config/wezterm/bright-scheme.lua
@@ -0,0 +1,28 @@
+return {
+ background = '#eeeeee',
+ foreground = 'black',
+
+ ansi = {
+ '#2b1b1b',
+ '#e42222',
+ '#12df1d',
+ '#e9b218',
+ '#4879f6',
+ '#dd0ffd',
+ '#41c1e6',
+ '#dcdcd0',
+ },
+ brights = {
+ '#52545b',
+ '#fb6a6a',
+ '#44cc00',
+ '#ebcb71',
+ '#3262db',
+ '#e32cff',
+ '#84e5f3',
+ '#f7f7f1',
+ },
+
+ selection_bg = '#3262db',
+ selection_fg = '#3262db',
+}
diff --git a/.config/wezterm/dark-scheme.lua b/.config/wezterm/dark-scheme.lua
new file mode 100644
index 0000000..4d4f8d6
--- /dev/null
+++ b/.config/wezterm/dark-scheme.lua
@@ -0,0 +1,28 @@
+return {
+ background = '#101418',
+ foreground = '#ededed',
+
+ ansi = {
+ '#2b1b1b',
+ '#e42222',
+ '#12df1d',
+ '#e9b218',
+ '#4879f6',
+ '#dd0ffd',
+ '#41c1e6',
+ '#dcdcd0',
+ },
+ brights = {
+ '#52545b',
+ '#fb6a6a',
+ '#74f435',
+ '#ebcb71',
+ '#8896ff',
+ '#ec77ff',
+ '#84e5f3',
+ '#f7f7f1',
+ },
+
+ selection_bg = '#313131',
+ selection_fg = '#fffefe',
+}
diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua
index bbdb51c..739155f 100644
--- a/.config/wezterm/wezterm.lua
+++ b/.config/wezterm/wezterm.lua
@@ -1,44 +1,38 @@
-local wezterm = require 'wezterm';
+local wezterm = require 'wezterm'
-return {
- colors = {
- background = '#101418',
- foreground = '#ededed',
+local dark = require 'dark-scheme'
+local bright = require 'bright-scheme'
- ansi = {
- '#2b1b1b',
- '#e42222',
- '#12df1d',
- '#e9b218',
- '#4879f6',
- '#dd0ffd',
- '#41c1e6',
- '#dcdcd0',
- },
- brights = {
- '#52545b',
- '#fb6a6a',
- '#74f435',
- '#ebcb71',
- '#8896ff',
- '#ec77ff',
- '#84e5f3',
- '#f7f7f1',
- },
+local conf = {}
- selection_bg = '#313131',
- selection_fg = '#fffefe',
- },
- font = wezterm.font "Input",
- hide_tab_bar_if_only_one_tab = true,
- font_size = 15,
- window_padding = {
- left = 7,
- right = 7,
- top = 0,
- bottom = 0,
- },
- window_background_opacity = 0.999,
- native_macos_fullscreen_mode = true,
- window_close_confirmation = 'NeverPrompt',
+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