mirror of
https://github.com/softinio/nix-config.git
synced 2025-09-01 07:06:41 -07:00
wezterm update to use workspaces better
This commit is contained in:
parent
772fb5cd4e
commit
b55cec1458
3 changed files with 16 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
|||
local wezterm = require 'wezterm'
|
||||
local mux = wezterm.mux
|
||||
local act = wezterm.action
|
||||
|
||||
local function is_vim(pane)
|
||||
|
@ -38,6 +39,12 @@ wezterm.on('update-right-status', function(window, pane)
|
|||
window:set_right_status(window:active_workspace())
|
||||
end)
|
||||
|
||||
wezterm.on('gui-startup', function(cmd)
|
||||
local tab, pane, window = mux.spawn_window(cmd or {})
|
||||
window:gui_window():maximize()
|
||||
pane:split { size = 0.2 }
|
||||
end)
|
||||
|
||||
return {
|
||||
adjust_window_size_when_changing_font_size = false,
|
||||
check_for_updates = false,
|
||||
|
@ -96,8 +103,8 @@ return {
|
|||
{ key = 'q', mods = 'SUPER', action = act.QuitApplication },
|
||||
{ key = 'i', mods = 'CTRL|SHIFT', action = act.SwitchToWorkspace },
|
||||
{
|
||||
key = 'S',
|
||||
mods = 'CTRL|SHIFT',
|
||||
key = '8',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action_callback(function(window, pane)
|
||||
-- Here you can dynamically construct a longer list if needed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue