home: Add tmux

restic-rest-server
Simon Bruder 2020-11-07 17:24:29 +01:00
parent 07216be2c3
commit dea242488f
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 29 additions and 0 deletions

View File

@ -39,6 +39,7 @@ in
./modules/mpd.nix
./modules/neovim.nix
./modules/sway.nix
./modules/tmux.nix
./modules/vdirsyncer.nix
./modules/xcompose.nix
./modules/xdg.nix

View File

@ -0,0 +1,28 @@
{
programs.tmux = {
enable = true;
terminal = "screen-256color";
escapeTime = 0;
aggressiveResize = true;
baseIndex = 1;
extraConfig = ''
# 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
'';
};
}