From 5d285d167729cc6b1e4ce6f30381c6bb7e2d84f1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 10 Dec 2023 21:47:50 +0300 Subject: [PATCH] Add ~/.wezterm.lua Contains basic config with Selenized colorscheme. --- config.yaml | 5 +++ dotfiles/wezterm.lua | 79 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 dotfiles/wezterm.lua diff --git a/config.yaml b/config.yaml index e5ee830..0913ab8 100644 --- a/config.yaml +++ b/config.yaml @@ -72,6 +72,9 @@ dotfiles: f_fuzzel.ini: src: config/fuzzel/fuzzel.ini dst: ~/.config/fuzzel/fuzzel.ini + f_wezterm.lua: + src: wezterm.lua + dst: ~/.wezterm.lua profiles: everywhere: dotfiles: @@ -101,6 +104,7 @@ profiles: - f_ssh-agent.service - d_waybar - f_fuzzel.ini + - f_wezterm.lua knafeh: dotfiles: - d_vim @@ -124,3 +128,4 @@ profiles: - f_ssh-agent.service - d_waybar - f_fuzzel.ini + - f_wezterm.lua diff --git a/dotfiles/wezterm.lua b/dotfiles/wezterm.lua new file mode 100644 index 0000000..e28d60d --- /dev/null +++ b/dotfiles/wezterm.lua @@ -0,0 +1,79 @@ +-- Pull in the wezterm API +local wezterm = require 'wezterm' + +-- This table will hold the configuration. +local config = {} + +-- In newer versions of wezterm, use the config_builder which will +-- help provide clearer error messages +if wezterm.config_builder then + config = wezterm.config_builder() +end + +-- This is where you actually apply your config choices + +-- Selenized colors by Alan Orth +-- With Lua help from: https://github.com/gfguthrie/wezterm-canonical-solarized/blob/main/canonical_solarized.lua +config.colors = { + -- The default text color + foreground = '#adbcbc', + -- The default background color + background = '#103c48', + + -- Overrides the cell background color when the current cell is occupied by the + -- cursor and the cursor style is set to Block + cursor_bg = '#53d6c7', + -- Overrides the text color when the current cell is occupied by the cursor + cursor_fg = '#103c48', + -- Specifies the border color of the cursor when the cursor style is set to Block, + -- or the color of the vertical or horizontal bar when the cursor style is set to + -- Bar or Underline. + cursor_border = '#52ad70', + + -- the foreground color of selected text (disabled for Solarized / Selenized) + selection_fg = 'none', + -- the background color of selected text + selection_bg = '#184956', + + -- The color of the scrollbar "thumb"; the portion that represents the current viewport + scrollbar_thumb = '#222222', + + -- The color of the split lines between panes + split = '#84c747', + + ansi = { + '#184956', + '#fa5750', + '#75b938', + '#dbb32d', + '#4695f7', + '#f275be', + '#41c7b9', + '#72898f', + }, + brights = { + '#2d5b69', + '#ff665c', + '#84c747', + '#ebc13d', + '#58a3ff', + '#ff84cd', + '#53d6c7', + '#cad8d9', + }, +} + +-- Disable bold colors for Solarized / Selenized +config.bold_brightens_ansi_colors = false +config.hide_tab_bar_if_only_one_tab = true + +-- Disable default padding +config.window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, +} + +-- and finally, return the configuration to wezterm +return config