2020-11-07 17:24:29 +01:00
|
|
|
{
|
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
2021-11-03 14:10:23 +01:00
|
|
|
terminal = "tmux-256color";
|
2020-11-07 17:24:29 +01:00
|
|
|
escapeTime = 0;
|
|
|
|
aggressiveResize = true;
|
|
|
|
baseIndex = 1;
|
2021-08-05 13:23:07 +02:00
|
|
|
extraConfig = /* tmux */ ''
|
2020-11-07 17:24:29 +01:00
|
|
|
# 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
|
2021-11-03 14:10:23 +01:00
|
|
|
|
|
|
|
# true color support
|
2022-07-06 01:09:59 +02:00
|
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
2020-11-07 17:24:29 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|