Configure workspaces on launch #6238
Unanswered
jamesredwards
asked this question in
Q&A
Replies: 2 comments
-
I bet you want something like what's detailed here. local wezterm = require "wezterm"
local mux = wezterm.mux
wezterm.on('gui-startup', function()
local _, first_pane, window = mux.spawn_window {}
local _, second_pane, _ = window:spawn_tab {}
local _, third_pane, _ = window:spawn_tab {}
second_pane:send_text "<insert busybox command>\n"
third_pane:send_text "top\n"
-- '\n' this will execute you shell command
end) |
Beta Was this translation helpful? Give feedback.
0 replies
-
May be #6477 to configure workspaces and select them |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Operating System(s) are you running on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
Sway
WezTerm version
wezterm 20240203-110809-5046fc22
Ask your question!
I'm trying to set my config to open up some default workspaces on launch using the below code. If I use "gui-startup" rather than "mux-startup" each workspace opens in a separate instance of wezterm which isn't what i'm after. The below doesn't actually work at all so I'm not sure what I'm doing wrong. Clearly have not understood something in the docs!
Beta Was this translation helpful? Give feedback.
All reactions