local function terminal_cmd(prg, name)
local join = require("gears.table").join
local term_cmd = {terminal}
- if name then
- if terminal:match("rxvt") then
+ if terminal:match("rxvt") then
+ if name then
term_cmd = join(term_cmd, {"-name", name})
end
+ elseif terminal:match("wezterm") then
+ term_cmd = join(term_cmd, {"start"})
+ if name then
+ term_cmd = join(term_cmd, {"--class", name})
+ end
+ else
+ term_cmd = join(term_cmd, {"-e"})
end
- return join(term_cmd, {"-e", prg})
+ return join(term_cmd, {prg})
end
function utils.spawn_terminal(prg, cprop, cb)