2022-06-12 15:39:15 +00:00
|
|
|
{pkgs, ...}: {
|
2022-01-21 08:22:11 +00:00
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
|
|
|
baseIndex = 1;
|
|
|
|
clock24 = true;
|
|
|
|
prefix = "C-a";
|
|
|
|
sensibleOnTop = true;
|
2024-04-01 14:30:26 +00:00
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
2024-04-01 14:32:02 +00:00
|
|
|
power-theme
|
|
|
|
cpu
|
|
|
|
{
|
|
|
|
plugin = resurrect;
|
|
|
|
extraConfig = "set -g @resurrect-strategy-nvim 'session'";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
plugin = continuum;
|
|
|
|
extraConfig = ''
|
|
|
|
set -g @continuum-restore 'on'
|
|
|
|
'';
|
|
|
|
}
|
2024-04-01 14:30:26 +00:00
|
|
|
];
|
2024-04-01 18:59:49 +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
|
|
|
|
set -g mouse on
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
'';
|
2022-01-21 08:22:11 +00:00
|
|
|
};
|
|
|
|
}
|