2023-10-23 17:36:22 -04:00
|
|
|
# Home-manager module
|
|
|
|
|
2023-10-18 14:54:24 -04:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
programs = {
|
|
|
|
tmux = {
|
|
|
|
enable = true;
|
2023-10-23 17:36:22 -04:00
|
|
|
mouse = true;
|
2023-10-18 14:54:24 -04:00
|
|
|
keyMode = "vi";
|
2023-10-23 17:36:22 -04:00
|
|
|
terminal = "tmux-256color";
|
2023-10-18 14:54:24 -04:00
|
|
|
newSession = true;
|
|
|
|
historyLimit = 30000;
|
|
|
|
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
|
|
dracula
|
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
bind-key -n Home send Escape "OH"
|
|
|
|
bind-key -n End send Escape "OF"
|
|
|
|
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
|
|
|
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
2023-10-23 17:36:22 -04:00
|
|
|
|
|
|
|
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
|
|
|
|
set -ga terminal-overrides ",*256col*:Tc"
|
2023-10-18 14:54:24 -04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|