diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 61c67eb..886f09a 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -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 = { { diff --git a/.local/share/applications/wezterm-dln-dev-secondary.desktop b/.local/share/applications/wezterm-dln-dev-secondary.desktop deleted file mode 100644 index b545e9f..0000000 --- a/.local/share/applications/wezterm-dln-dev-secondary.desktop +++ /dev/null @@ -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 diff --git a/.local/share/applications/wezterm-dln-dev.desktop b/.local/share/applications/wezterm-dln-dev.desktop index 41311a9..ae83c85 100644 --- a/.local/share/applications/wezterm-dln-dev.desktop +++ b/.local/share/applications/wezterm-dln-dev.desktop @@ -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 diff --git a/.local/share/applications/wezterm-local.desktop b/.local/share/applications/wezterm-local.desktop deleted file mode 100644 index 5275fe7..0000000 --- a/.local/share/applications/wezterm-local.desktop +++ /dev/null @@ -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