wezterm: keybindings

also reorganize
This commit is contained in:
Sridhar Ratnakumar 2024-08-12 15:46:26 -04:00
parent 88d94eaffe
commit 95f54c2cca
No known key found for this signature in database
4 changed files with 21 additions and 12 deletions

View file

@ -35,7 +35,7 @@
self.homeModules.common
./zsh.nix
# ./bash.nix
# ./kitty.nix
./wezterm
./himalaya.nix
./_1password.nix
];

View file

@ -67,16 +67,5 @@
fzf.enable = true;
jq.enable = true;
htop.enable = true;
wezterm = {
enable = true;
# https://alexplescan.com/posts/2024/08/10/wezterm/
extraConfig = ''
return {
font = wezterm.font("Monaspace Argon");
color_scheme = 'Tokyo Night';
window_decorations = 'RESIZE';
}
'';
};
};
}

7
home/wezterm/default.nix Normal file
View file

@ -0,0 +1,7 @@
{
programs.wezterm = {
enable = true;
# https://alexplescan.com/posts/2024/08/10/wezterm/
extraConfig = builtins.readFile ./wezterm.lua;
};
}

13
home/wezterm/wezterm.lua Normal file
View file

@ -0,0 +1,13 @@
return {
font = wezterm.font("Monaspace Argon");
color_scheme = 'Tokyo Night';
window_decorations = 'RESIZE';
keys = {
-- Emulate other programs (Zed, VSCode, ...)
{
key = 'P',
mods = 'CMD|SHIFT',
action = wezterm.action.ActivateCommandPalette,
},
};
}