nixos/modules/desktop/alacritty.nix

23 lines
598 B
Nix
Raw Normal View History

2024-03-05 22:57:41 +01:00
{home-manager, ...}: {
2023-08-25 00:57:42 +02:00
# Terminal emulator
2023-08-23 21:18:40 +02:00
# https://wiki.archlinux.org/title/Alacritty
home-manager.users.caspervk = {
programs.alacritty = {
enable = true;
settings = {
key_bindings = [
2023-08-25 00:57:42 +02:00
# It's easy to open a new terminal using Mod+Enter in sway, but it
# always opens in the home directly. This binds Control+Shift+Enter
# to open a new terminal in the current directory.
2024-03-05 22:57:41 +01:00
{
key = "Return";
mods = "Control|Shift";
action = "SpawnNewInstance";
}
2023-08-23 21:18:40 +02:00
];
};
};
};
}