Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinSilvester committed Oct 10, 2024
1 parent fdbf749 commit 99da209
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
- ##### Requirements:

- <details>
<summary><b>WezTerm<b></summary>
<summary><b>WezTerm</b></summary>

Minimum Version: `20240127-113634-bbcac864`<br>
Recommended Version: [`Nightly`](https://github.com/wez/wezterm/releases/nightly)
Expand Down
8 changes: 6 additions & 2 deletions config/appearance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
20 changes: 12 additions & 8 deletions events/new-tab-button.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 99da209

Please sign in to comment.