Skip to content

Commit

Permalink
feat(wezterm): Add keybind to open a btop tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jul 26, 2024
1 parent 217881f commit beceb71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home-manager/modules/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ in {
config.tab_max_width = tab_max_width
config.tab_bar_at_bottom = true
config.hide_tab_bar_if_only_one_tab = false
config.switch_to_last_active_tab_when_closing_tab = true
local function tab_title(tab, is_mux_win)
local title
Expand Down Expand Up @@ -192,6 +193,14 @@ in {
cwd = wezterm.home_dir,
}),
},
-- show btop in new tab
{
key = 'p',
mods = 'META',
action = wezterm.action.SpawnCommandInNewTab({
args = { '${pkgs.btop}/bin/btop' },
})
},
{
key = 'LeftArrow',
mods = 'META',
Expand Down

0 comments on commit beceb71

Please sign in to comment.