wezterm: multi-workspace goodness
This commit is contained in:
parent
fe3b0111f2
commit
0f1e2c9baf
4 changed files with 21 additions and 42 deletions
|
@ -10,29 +10,28 @@ local function font_with_fallback(name, params)
|
|||
end
|
||||
|
||||
wezterm.on("gui-startup", function(cmd)
|
||||
local tab, pane, window = mux.spawn_window(cmd or {})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
local _, _, local_win = mux.spawn_window({
|
||||
workspace = "default",
|
||||
})
|
||||
for _ = 1, 10 do
|
||||
local_win:spawn_tab({})
|
||||
end
|
||||
|
||||
mux.spawn_window({
|
||||
workspace = "dln-dev",
|
||||
domain = { DomainName = "dln-dev" },
|
||||
})
|
||||
|
||||
mux.set_active_workspace("default")
|
||||
end)
|
||||
|
||||
wezterm.on("mux-startup", function()
|
||||
local tab, pane, window = mux.spawn_window({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
window:spawn_tab({})
|
||||
local _, _, dev_win = mux.spawn_window({
|
||||
workspace = "dln-dev",
|
||||
})
|
||||
for _ = 1, 10 do
|
||||
dev_win:spawn_tab({})
|
||||
end
|
||||
end)
|
||||
|
||||
local function scheme_for_appearance(appearance)
|
||||
|
@ -176,6 +175,7 @@ return {
|
|||
{ key = "RightArrow", mods = "CTRL", action = act.ActivateTabRelative(1) },
|
||||
{ key = "LeftArrow", mods = "CTRL", action = act.ActivateTabRelative(-1) },
|
||||
{ key = "l", mods = "ALT", action = wezterm.action.ShowLauncher },
|
||||
{ key = "Backspace", mods = "ALT", action = act.SwitchWorkspaceRelative(1) },
|
||||
},
|
||||
unix_domains = {
|
||||
{
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Name=wezterm-dln-dev-secondary
|
||||
GenericName=wezterm-dln-dev-secondary
|
||||
StartupWMClass=org.wezfurlong.wezterm
|
||||
Type=Application
|
||||
TryExec=/usr/bin/wezterm
|
||||
Icon=org.wezfurlong.wezterm
|
||||
Terminal=false
|
||||
Categories=System;TerminalEmulator;
|
||||
Exec=/usr/bin/wezterm connect dln-dev --class=wezterm-dln-dev-secondary
|
|
@ -7,5 +7,4 @@ TryExec=/usr/bin/wezterm
|
|||
Icon=org.wezfurlong.wezterm
|
||||
Terminal=false
|
||||
Categories=System;TerminalEmulator;
|
||||
Exec=/usr/bin/wezterm connect dln-dev --class=wezterm-dln-dev
|
||||
#Exec=/usr/bin/wezterm --config 'default_prog={"ssh", "-q", "dln-dev"}' start --class=wezterm-dln-dev
|
||||
Exec=/usr/bin/wezterm start --always-new-process --class=wezterm-dln-dev
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Name=wezterm-local
|
||||
GenericName=wezterm-local
|
||||
StartupWMClass=wezterm-local
|
||||
Type=Application
|
||||
TryExec=/usr/bin/wezterm
|
||||
Icon=org.wezfurlong.wezterm
|
||||
Terminal=false
|
||||
Categories=System;TerminalEmulator;
|
||||
Exec=/usr/bin/wezterm start --class=wezterm-local
|
Loading…
Reference in a new issue