nix-infra/modules/home/tmux/default.nix

40 lines
748 B
Nix
Raw Normal View History

2024-03-24 18:02:45 +00:00
{ ... }: {
2024-03-24 18:02:32 +00:00
programs.tmux = {
enable = true;
clock24 = true;
shortcut = "a";
2024-03-24 18:03:07 +00:00
keyMode = "vi";
2024-03-24 18:02:32 +00:00
mouse = true;
2024-03-24 18:03:07 +00:00
historyLimit = 50000;
sensibleOnTop = false;
2024-03-24 18:02:32 +00:00
extraConfig = ''
set -g status-position top
setw -g mode-keys vi
bind . split-window -h
bind - split-window -v
2024-03-24 18:03:07 +00:00
bind C-p previous-window
bind C-n next-window
bind R source-file '~/.config/tmux/tmux.conf'
2024-03-24 18:02:32 +00:00
set -g base-index 1
set -g status-bg black
set -g status-fg green
set-option -sg escape-time 10
set-option -g focus-events on
2024-03-24 18:03:07 +00:00
set -s escape-time 0
set -g display-time 4000
set -g status-interval 5
set -g default-terminal "screen-256color"
'';
2024-03-24 18:02:45 +00:00
};
}
2024-03-24 18:02:32 +00:00