aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wezterm/colorscheme.lua70
-rw-r--r--wezterm/wezterm.lua41
2 files changed, 111 insertions, 0 deletions
diff --git a/wezterm/colorscheme.lua b/wezterm/colorscheme.lua
new file mode 100644
index 0000000..187858e
--- /dev/null
+++ b/wezterm/colorscheme.lua
@@ -0,0 +1,70 @@
+local M = {}
+
+function M.apply_to_config(config)
+ config.color_scheme = 'Wal'
+ -- color schemes
+ config.color_schemes = {
+ ['Wal'] = {
+ background = '#011111',
+ foreground = '#cfc797',
+
+ cursor_bg = '#732d35',
+ cursor_fg = '#e4a44d',
+
+ cursor_border = '#732d35',
+
+ selection_bg = '#003136',
+ ansi = {
+ '#091919', -- black
+ '#732d35', -- red
+ '#438566', -- green
+ '#ab710e', -- yellow
+ '#254e76', -- blue
+ '#643875', -- purple
+ '#136783', -- cyan
+ '#bfc3c3', -- white
+ },
+ brights = {
+ '#556767',
+ '#945d63',
+ '#7ba47d',
+ '#e4a44d',
+ '#49698f',
+ '#815e8a',
+ '#498ba1',
+ '#e6e7e7',
+ },
+
+ visual_bell = '#732d35',
+
+ tab_bar = {
+ background = '#011111',
+
+ active_tab = {
+ bg_color = '#438566',
+ fg_color = '#011111',
+ },
+
+ inactive_tab = {
+ bg_color = '#003136',
+ fg_color = '#cfc797',
+ },
+ inactive_tab_hover = {
+ bg_color = '#011111',
+ fg_color = '#bfc3c3',
+ },
+
+ new_tab = {
+ bg_color = '#136783',
+ fg_color = '#cfc797',
+ },
+ new_tab_hover = {
+ bg_color = '#011111',
+ fg_color = '#bfc3c3',
+ },
+ },
+ }
+ }
+end
+
+return M
diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua
new file mode 100644
index 0000000..928357c
--- /dev/null
+++ b/wezterm/wezterm.lua
@@ -0,0 +1,41 @@
+local wezterm = require 'wezterm'
+
+local config = wezterm.config_builder()
+
+config.window_padding = {
+ left = 0,
+ right = 0,
+ top = 0,
+ bottom = 0,
+}
+
+config.font_size = 12
+
+-- tab
+config.use_fancy_tab_bar = false
+config.hide_tab_bar_if_only_one_tab = true
+
+-- window scheme/appeance
+require('colorscheme').apply_to_config(config)
+config.window_background_opacity = 0.75
+
+-- bell settings
+config.visual_bell = {
+ fade_in_function = 'EaseIn',
+ fade_in_duration_ms = 150,
+ fade_out_function = 'EaseOut',
+ fade_out_duration_ms = 150,
+}
+
+wezterm.on('bell', function(_, pane)
+ if pane:has_unseen_output() then
+ os.execute(table.concat({
+ "notify-send", "-a wezterm",
+ '"WezTerm: Bell Rung"',
+ '"' .. pane:get_title() .. '"',
+ }, " ")
+ )
+ end
+end)
+
+return config