splits out configuration into central modules
This commit is contained in:
parent
58ffb417dd
commit
b44654b9a2
63 changed files with 20 additions and 20 deletions
28
modules/wezterm/config/startup.lua
Normal file
28
modules/wezterm/config/startup.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
local wezterm = require("wezterm")
|
||||
local mux = wezterm.mux
|
||||
local helpers = require("helpers")
|
||||
|
||||
local M = {}
|
||||
|
||||
wezterm.on("gui-startup", function(cmd)
|
||||
local args = {}
|
||||
if cmd then
|
||||
args = cmd.args
|
||||
end
|
||||
|
||||
-- WORKSPACES
|
||||
-- W: dennis
|
||||
local _, _, _ = mux.spawn_window({
|
||||
workspace = "dennis",
|
||||
cwd = wezterm.home_dir,
|
||||
args = args,
|
||||
})
|
||||
|
||||
mux.set_active_workspace("dennis")
|
||||
end)
|
||||
|
||||
function M.apply_to_config(config)
|
||||
return config
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue