wezterm: update config

This commit is contained in:
Gabriel Arazas 2024-09-08 12:22:14 +08:00
parent 3df8b2cc1b
commit 7351df249f
2 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,9 @@ local wezterm = require("wezterm")
local xdg_data_home = os.getenv("XDG_DATA_HOME") or "~/.local/share"
local theme_dir = xdg_data_home .. "/base16/bark-on-a-tree"
local light_scheme, light_scheme_metadata =
wezterm.color.load_base16_scheme(theme_dir .. "/albino-bark-on-a-tree.yaml")
wezterm.color.load_base16_scheme(theme_dir .. "/albino-bark-on-a-tree.yaml")
local dark_theme, dark_theme_metadata =
wezterm.color.load_base16_scheme(theme_dir .. "/bark-on-a-tree.yaml")
wezterm.color.load_base16_scheme(theme_dir .. "/bark-on-a-tree.yaml")
local function scheme_for_appearance()
-- We're just following the default XDG appearance spec.
@ -62,7 +62,7 @@ function module.apply_to_config(config)
-- Disable some more annoyances.
config.enable_tab_bar = true
config.enable_scroll_bar = false
config.tab_bar_at_bottom = true
config.tab_bar_at_bottom = false
config.window_decorations = "RESIZE"
-- Configuring the appearance of the tab bar.

View File

@ -78,6 +78,7 @@ function module.apply_to_config(config)
{ key = "DownArrow", mods = keymod, action = act.ActivatePaneDirection("Down") },
{ key = "UpArrow", mods = keymod, action = act.ActivatePaneDirection("Up") },
{ key = "RightArrow", mods = keymod, action = act.ActivatePaneDirection("Right") },
{ key = "^", mods = keymod, action = act.ActivateLastTab },
-- More pane-related niceties.
{ key = "f", mods = "LEADER", action = act.TogglePaneZoomState },