nixos/modules/desktop/alacritty.nix

19 lines
554 B
Nix
Raw Normal View History

2023-08-23 21:18:40 +02: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.
2023-08-23 21:18:40 +02:00
{ key = "Return"; mods = "Control|Shift"; action = "SpawnNewInstance"; }
];
};
};
};
}