home: Add tmux
This commit is contained in:
parent
07216be2c3
commit
dea242488f
|
@ -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
|
||||
|
|
28
users/simon/modules/tmux.nix
Normal file
28
users/simon/modules/tmux.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue