nixos-config/users/simon/modules/tmux.nix
Simon Bruder bdd4956599
Switch from alacritty to foot
Some programs have difficulties with foot as TERM (e. g. aerc’s
terminal). Therefore, it is manually set to xterm-256color and true
colour support is forced in tmux.
2022-07-08 11:51:04 +02:00

32 lines
642 B
Nix

{
programs.tmux = {
enable = true;
terminal = "tmux-256color";
escapeTime = 0;
aggressiveResize = true;
baseIndex = 1;
extraConfig = /* tmux */ ''
# screen behaviour
unbind C-b
set -g prefix C-a
unbind C-a
bind C-a send-prefix
# more ergonomic splitting
unbind |
bind | split-window -h
unbind -
bind - split-window -v
# HOWTO copy: PREFIX+[, space, select text, enter, PREFIX+]
# disable mouse (prevents simple copying)
set -g mouse off
# true color support
set -ga terminal-overrides ",xterm-256color:Tc"
'';
};
}