/ modules / home / programs / tmux.nix
tmux.nix
 1  {
 2    programs.tmux = {
 3      enable = false;
 4      keyMode = "vi";
 5      mouse = true;
 6      prefix = "C-a";
 7      extraConfig = ''
 8        unbind C-b
 9        set-option -g prefix C-a
10        bind-key C-a send-prefix
11  
12        # Split panes using | and -
13        bind | split-window -h
14        bind - split-window -v
15  
16        # Navigate tmux panes with Ctrl+h/j/k/l
17        bind -n C-h select-pane -L
18        bind -n C-j select-pane -D
19        bind -n C-k select-pane -U
20        bind -n C-l select-pane -R
21      '';
22    };
23  }