From 99da209e04aeb698140a803d53d8a04707d374a0 Mon Sep 17 00:00:00 2001 From: Kevin Silvester Date: Thu, 10 Oct 2024 16:40:57 +0100 Subject: [PATCH] docs: update readme --- README.md | 2 +- config/appearance.lua | 8 ++++++-- events/new-tab-button.lua | 20 ++++++++++++-------- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a0fd251..3e564af 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ - ##### Requirements: -
- WezTerm + WezTerm Minimum Version: `20240127-113634-bbcac864`
Recommended Version: [`Nightly`](https://github.com/wez/wezterm/releases/nightly) diff --git a/config/appearance.lua b/config/appearance.lua index a240888..5b776e7 100644 --- a/config/appearance.lua +++ b/config/appearance.lua @@ -52,8 +52,12 @@ return { -- font = fonts.font, -- font_size = fonts.font_size, }, + -- inactive_pane_hsb = { + -- saturation = 0.9, + -- brightness = 0.65, + -- }, inactive_pane_hsb = { - saturation = 0.9, - brightness = 0.65, + saturation = 1, + brightness = 1, }, } diff --git a/events/new-tab-button.lua b/events/new-tab-button.lua index fae39ad..d3e22b2 100644 --- a/events/new-tab-button.lua +++ b/events/new-tab-button.lua @@ -1,23 +1,27 @@ local wezterm = require('wezterm') +local launch_menu = require('config.launch').launch_menu +local domains = require('config.domains') + local nf = wezterm.nerdfonts local M = {} M.setup = function() wezterm.on('new-tab-button-click', function(window, pane, button, default_action) - wezterm.log_info('new-tab', window, pane, button, default_action) if default_action and button == 'Left' then window:perform_action(default_action, pane) end if default_action and button == 'Right' then - window:perform_action( - wezterm.action.ShowLauncherArgs({ - title = nf.fa_rocket .. ' Select/Search:', - flags = 'FUZZY|LAUNCH_MENU_ITEMS|DOMAINS', - }), - pane - ) + -- window:perform_action( + -- wezterm.action.ShowLauncherArgs({ + -- title = nf.fa_rocket .. ' Select/Search:', + -- flags = 'FUZZY|LAUNCH_MENU_ITEMS|DOMAINS', + -- }), + -- pane + -- ) + -- window:perform_action(wezterm.action.SpawnTab({ DomainName = 'WSL:Ubuntu'}), pane) + window:perform_action(wezterm.action.SpawnCommandInNewTab({ args = {'pwsh'}}), pane) end return false end)