From a50959e31db399713e94241c1f6436d1c2210426 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 4 Jun 2024 17:09:48 -0500 Subject: feat(wezterm): make backround transparent in linux only --- dot_config/wezterm/wezterm.lua | 32 ----------------------------- dot_config/wezterm/wezterm.lua.tmpl | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 32 deletions(-) delete mode 100644 dot_config/wezterm/wezterm.lua create mode 100644 dot_config/wezterm/wezterm.lua.tmpl (limited to 'dot_config/wezterm') diff --git a/dot_config/wezterm/wezterm.lua b/dot_config/wezterm/wezterm.lua deleted file mode 100644 index 1f587c4..0000000 --- a/dot_config/wezterm/wezterm.lua +++ /dev/null @@ -1,32 +0,0 @@ -local wezterm = require("wezterm") -local keys = require("keys") -local chezmoi = require("chezmoi") - -local font = wezterm.font_with_fallback({ - { family = "Iosevka Nerd Font" }, - { family = "JetBrains Mono" }, -}) - -local font_size = 12 -local width = 120 -local length = 40 - -local config = { - font = font, - font_size = font_size, - initial_cols = width, - initial_rows = length, - -- TODO: Create custom color scheme in separate module (colors.lua) - color_scheme = "Gruvbox dark, medium (base16)", - -- window_background_opacity = 0.9, - - use_fancy_tab_bar = false, - show_tabs_in_tab_bar = false, - show_new_tab_button_in_tab_bar = false, - default_prog = { chezmoi.shell }, - - leader = keys.leader, - keys = keys.key_bindings, -} - -return config diff --git a/dot_config/wezterm/wezterm.lua.tmpl b/dot_config/wezterm/wezterm.lua.tmpl new file mode 100644 index 0000000..06ac812 --- /dev/null +++ b/dot_config/wezterm/wezterm.lua.tmpl @@ -0,0 +1,40 @@ +---@diagnostic disable: undefined-global +-- vim:ft=lua + +-- wezterm.lua +-- Main wezterm config file +-- {{/* This file supports Go's text/template language. */}} + +local wezterm = require("wezterm") +local keys = require("keys") +local chezmoi = require("chezmoi") + +local font = wezterm.font_with_fallback({ + { family = "Iosevka Nerd Font" }, + { family = "JetBrains Mono" }, +}) + +local font_size = 12 +local width = 120 +local length = 40 + +local config = { + font = font, + font_size = font_size, + initial_cols = width, + initial_rows = length, + -- TODO: Create custom color scheme in separate module (colors.lua) + color_scheme = "Gruvbox dark, medium (base16)", + {{- if eq .chezmoi.os "linux" }} + window_background_opacity = 0.9, + {{ end }} + use_fancy_tab_bar = false, + show_tabs_in_tab_bar = false, + show_new_tab_button_in_tab_bar = false, + default_prog = { chezmoi.shell }, + + leader = keys.leader, + keys = keys.key_bindings, +} + +return config -- cgit v1.2.3