2022-01-21 08:22:11 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
|
|
|
baseIndex = 1;
|
|
|
|
clock24 = true;
|
|
|
|
prefix = "C-a";
|
|
|
|
sensibleOnTop = true;
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
|
|
power-theme
|
2022-01-21 08:32:36 +00:00
|
|
|
cpu
|
|
|
|
{
|
2022-01-21 08:33:28 +00:00
|
|
|
plugin = resurrect;
|
2022-01-21 08:32:36 +00:00
|
|
|
extraConfig = "set -g @resurrect-strategy-nvim 'session'";
|
|
|
|
}
|
|
|
|
{
|
2022-01-21 08:33:28 +00:00
|
|
|
plugin = continuum;
|
2022-01-21 08:32:36 +00:00
|
|
|
extraConfig = ''
|
|
|
|
set -g @continuum-restore 'on'
|
|
|
|
'';
|
|
|
|
}
|
2022-01-21 08:22:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
set-window-option -g automatic-rename on
|
|
|
|
set-option -g set-titles on
|
|
|
|
|
|
|
|
bind -n M-Left select-pane -L
|
|
|
|
bind -n M-Right select-pane -R
|
|
|
|
bind -n M-Up select-pane -U
|
|
|
|
bind -n M-Down select-pane -D
|
|
|
|
|
|
|
|
bind -n S-Left previous-window
|
|
|
|
bind -n S-Right next-window
|
|
|
|
|
|
|
|
set -sg escape-time 0
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|