From 0a3befa6776aa42a5caeb53099032a4c62c95710 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 14 May 2025 14:53:56 +0200 Subject: [PATCH] feat(wezterm): add onedark --- .config/wezterm/colors/onedark.toml | 36 +++++++++++++++++++++++++++++ .config/wezterm/events.lua | 2 +- .config/wezterm/wezterm.lua | 32 +++++++++++++++++++++---- 3 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 .config/wezterm/colors/onedark.toml diff --git a/.config/wezterm/colors/onedark.toml b/.config/wezterm/colors/onedark.toml new file mode 100644 index 0000000..f576e5c --- /dev/null +++ b/.config/wezterm/colors/onedark.toml @@ -0,0 +1,36 @@ +[metadata] +name = "onedark" +origin_url = "https://github.com/owallb/dotfiles" + +[colors] +background = "#1f2329" +foreground = "#a0a8b7" +cursor_bg = "#a0a8b7" +cursor_fg = "#1e2127" +cursor_border = "#a0a8b7" +selection_bg = "#323641" +# selection_fg = "#1f2329" +scrollbar_thumb = "#535965" +split = "#323641" +compose_cursor = "#e8c88c" +visual_bell = "#e8c88c" +ansi = [ + "#181a1f", + "#e55561", + "#8ebd6b", + "#e2b86b", + "#4fa6ed", + "#bf68d9", + "#48b0bd", + "#a0a8b7", +] +brights = [ + "#5c6370", + "#e86671", + "#98c379", + "#e5c07b", + "#61afef", + "#c678dd", + "#56b6c2", + "#abb2bf", +] diff --git a/.config/wezterm/events.lua b/.config/wezterm/events.lua index 1101ed2..304852c 100644 --- a/.config/wezterm/events.lua +++ b/.config/wezterm/events.lua @@ -4,7 +4,7 @@ local M = {} function M.setup() wezterm.on("format-window-title", function() - return "WezTerm" + return "Terminal" end) wezterm.on("format-tab-title", function(tab, _, _, _, _, _) local title = tab.tab_title diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 75b54e4..f45c716 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -2,7 +2,7 @@ local wezterm = require("wezterm") local config = wezterm.config_builder() -local ENABLE_MULTIPLEXING = false +local ENABLE_MULTIPLEXING = true -- quickstart: https://wezfurlong.org/wezterm/config/files.html -- spec: https://wezfurlong.org/wezterm/config/lua/general.html @@ -34,7 +34,7 @@ end -- Colors -config.color_scheme = "moonfly" +config.color_scheme = "onedark" -- Fonts @@ -57,9 +57,33 @@ if ENABLE_MULTIPLEXING then config.window_decorations = "INTEGRATED_BUTTONS|RESIZE" config.enable_tab_bar = true config.enable_scroll_bar = true - config.use_fancy_tab_bar = false + config.use_fancy_tab_bar = true config.show_new_tab_button_in_tab_bar = false - config.leader = { key = "b", mods = "CTRL", timeout_milliseconds = 1000 } + config.leader = { key = "z", mods = "CTRL", timeout_milliseconds = 1000 } + + config.window_frame = { + -- active_titlebar_bg = "#181b20", + -- inactive_titlebar_bg = "#323641", + } + + config.colors = { + tab_bar = { + inactive_tab_edge = "#282c34", + active_tab = { + bg_color = "#1f2329", + fg_color = "#a0a8b7", + }, + inactive_tab = { + bg_color = "#282c34", + fg_color = "#a0a8b7", + }, + inactive_tab_hover = { + bg_color = "#282c34", + fg_color = "#a0a8b7", + }, + }, + } + bindings.enable_multiplexing() end