home: Add tmux

This commit is contained in:
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/mpd.nix
./modules/neovim.nix ./modules/neovim.nix
./modules/sway.nix ./modules/sway.nix
./modules/tmux.nix
./modules/vdirsyncer.nix ./modules/vdirsyncer.nix
./modules/xcompose.nix ./modules/xcompose.nix
./modules/xdg.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
'';
};
}