style: enhance window decorations for improved visual appeal
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Neovim │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
local M = {}
|
||||
|
||||
local wezterm = WEZTERM
|
||||
|
||||
wezterm.on("user-var-changed", function(window, pane, name, value)
|
||||
local overrides = window:get_config_overrides() or {}
|
||||
if name == "ZEN_MODE" then
|
||||
local incremental = value:find("+")
|
||||
local number_value = tonumber(value)
|
||||
if incremental ~= nil then
|
||||
while number_value > 0 do
|
||||
window:perform_action(wezterm.action.IncreaseFontSize, pane)
|
||||
number_value = number_value - 1
|
||||
end
|
||||
overrides.enable_tab_bar = false
|
||||
elseif number_value < 0 then
|
||||
window:perform_action(wezterm.action.ResetFontSize, pane)
|
||||
overrides.font_size = nil
|
||||
overrides.enable_tab_bar = true
|
||||
else
|
||||
overrides.font_size = number_value
|
||||
overrides.enable_tab_bar = false
|
||||
end
|
||||
end
|
||||
window:set_config_overrides(overrides)
|
||||
end)
|
||||
|
||||
return M
|
||||
+16
-4
@@ -1,3 +1,4 @@
|
||||
local wezterm = WEZTERM
|
||||
local config = CONFIG
|
||||
local types = require("types")
|
||||
local funcs = require("funcs")
|
||||
@@ -5,6 +6,10 @@ local batteries = BATTERIES
|
||||
|
||||
local tabline = WEZTERM.plugin.require("https://github.com/michaelbrusegard/tabline.wez")
|
||||
|
||||
wezterm.on("bell", function(_, pane)
|
||||
wezterm.log_info("the bell was rung in pane " .. pane:pane_id() .. "!")
|
||||
end)
|
||||
|
||||
local tab_opts = {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
@@ -55,7 +60,14 @@ local tab_opts = {
|
||||
"/",
|
||||
{ "cwd", padding = { left = 0, right = 1 } },
|
||||
WEZTERM.nerdfonts.ple_left_half_circle_thin,
|
||||
{ "process", padding = { left = 0, right = 0 } },
|
||||
{
|
||||
"process",
|
||||
process_to_icon = {
|
||||
["discordo"] = { WEZTERM.nerdfonts.md_discord, color = { fg = "#a5e3a0" } },
|
||||
["iamb"] = { WEZTERM.nerdfonts.md_chat, color = { fg = "#E78284" } },
|
||||
},
|
||||
padding = { left = 0, right = 0 },
|
||||
},
|
||||
},
|
||||
tab_inactive = {
|
||||
{
|
||||
@@ -79,9 +91,9 @@ local tab_opts = {
|
||||
padding = { left = 1, right = 0 },
|
||||
icons_enabled = false,
|
||||
},
|
||||
{ "parent", padding = { left = 0, right = 0 } },
|
||||
"/",
|
||||
{ "cwd", padding = { left = 0, right = 1 } },
|
||||
-- { "parent", padding = { left = 0, right = 0 } },
|
||||
-- "/",
|
||||
-- { "cwd", padding = { left = 0, right = 1 } },
|
||||
{ "process", icons_only = true, padding = { left = 0, right = 0 } },
|
||||
},
|
||||
tabline_x = {},
|
||||
|
||||
Reference in New Issue
Block a user