wezterm update to use workspaces better

This commit is contained in:
Salar Rahmanian 2024-11-04 09:42:06 -08:00
parent 772fb5cd4e
commit b55cec1458
3 changed files with 16 additions and 8 deletions

View file

@ -27,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1730448474, "lastModified": 1730600078,
"narHash": "sha256-qE/cYKBhzxHMtKtLK3hlSR3uzO1pWPGLrBuQK7r0CHc=", "narHash": "sha256-BoyFmE59HDF3uybBySsWVoyjNuHvz3Wv8row/mSb958=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "683d0c4cd1102dcccfa3f835565378c7f3cbe05e", "rev": "4652874d014b82cb746173ffc64f6a70044daa7e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -58,11 +58,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1730510022, "lastModified": 1730612615,
"narHash": "sha256-/FKsDxYEDNScuYuh9UjBwW8+f6WxjoRke8LvbF+ckjc=", "narHash": "sha256-l5mlB45tLEcMGGEucbGs06CvsrXrxGM4NKueWh7Pkuo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "41c8b0a22b37fb114413b504c74ae64065d2fb83", "rev": "88b6dea6f574d59dd0f3bd48d1da32d37118de34",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -248,6 +248,7 @@
set -xg PATH $HOME/bin $HOME/.cargo/bin $PATH set -xg PATH $HOME/bin $HOME/.cargo/bin $PATH
eval (direnv hook fish) eval (direnv hook fish)
any-nix-shell fish --info-right | source any-nix-shell fish --info-right | source
eval (ssh-agent -c)
ssh-add ~/.ssh/id_ed25519 --apple-use-keychain --apple-load-keychain ssh-add ~/.ssh/id_ed25519 --apple-use-keychain --apple-load-keychain
''; '';

View file

@ -1,4 +1,5 @@
local wezterm = require 'wezterm' local wezterm = require 'wezterm'
local mux = wezterm.mux
local act = wezterm.action local act = wezterm.action
local function is_vim(pane) local function is_vim(pane)
@ -38,6 +39,12 @@ wezterm.on('update-right-status', function(window, pane)
window:set_right_status(window:active_workspace()) window:set_right_status(window:active_workspace())
end) 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 { return {
adjust_window_size_when_changing_font_size = false, adjust_window_size_when_changing_font_size = false,
check_for_updates = false, check_for_updates = false,
@ -96,8 +103,8 @@ return {
{ key = 'q', mods = 'SUPER', action = act.QuitApplication }, { key = 'q', mods = 'SUPER', action = act.QuitApplication },
{ key = 'i', mods = 'CTRL|SHIFT', action = act.SwitchToWorkspace }, { key = 'i', mods = 'CTRL|SHIFT', action = act.SwitchToWorkspace },
{ {
key = 'S', key = '8',
mods = 'CTRL|SHIFT', mods = 'ALT',
action = wezterm.action_callback(function(window, pane) action = wezterm.action_callback(function(window, pane)
-- Here you can dynamically construct a longer list if needed -- Here you can dynamically construct a longer list if needed