nixos-config/modules/alacritty.nix
Sean Buckley dce8138b43 tweak i3
2021-08-31 18:21:37 -04:00

20 lines
558 B
Nix

{ config, pkgs, lib, ... }:
{
config = {
programs.bash.interactiveShellInit = ''
function _set_title() {
printf "\033]0;%s@%s:%s\007" "''${USER}" "''${HOSTNAME%%.*}" "''${PWD/#$HOME/\~}"
}
[ -z "$VTE_VERSION" ] && PROMPT_COMMAND="_set_title; $PROMPT_COMMAND"
'';
environment.etc."xdg/alacritty.yml".text = ''
env:
TERM: xterm-256color
key_bindings:
- { key: N, mods: Control|Shift, action: SpawnNewInstance }
- { key: T, mods: Control|Shift, action: SpawnNewInstance }
'';
};
}