system/pkgs/app/terminal/tmux.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2024-10-14 17:28:31 -04:00
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
tmux
];
programs.tmux = {
enable = true;
2024-11-01 12:04:24 -04:00
prefix = "C-s";
2024-10-14 17:28:31 -04:00
shortcut = "a";
# aggressiveResize = true; -- Disabled to be iTerm-friendly
baseIndex = 1;
newSession = true;
# Stop tmux+escape craziness.
escapeTime = 0;
# Force tmux to use /tmp for sockets (WSL2 compat)
secureSocket = false;
2024-11-01 12:04:24 -04:00
mouse = true;
keyMode = "vi";
terminal = "xterm-256color";
2024-10-14 17:28:31 -04:00
plugins = with pkgs; [
tmuxPlugins.better-mouse-mode
];
2024-11-01 12:04:24 -04:00
# extraConfig = ''
# # # set -g default-terminal "xterm-256color"
# # # set -ga terminal-overrides ",*256col*:Tc"
# # # set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# # # set-environment -g COLORTERM "truecolor"
2024-10-14 17:28:31 -04:00
2024-11-01 12:04:24 -04:00
# # Mouse works as expected
# set-option -g mouse on
# # easy-to-remember split pane commands
# bind | split-window -h -c "#{pane_current_path}"
# bind - split-window -v -c "#{pane_current_path}"
# bind c new-window -c "#{pane_current_path}"
# '';
2024-10-14 17:28:31 -04:00
};
}