aboutsummaryrefslogtreecommitdiff
path: root/modules/tmux.nix
blob: e10937539596be9257aeaf9562cac61a91f9bb84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, pkgs, ... }:

{
  options.tmux.enable = lib.mkEnableOption "Enable and configure Tmux";
  config = lib.mkIf config.tmux.enable {
    programs.tmux = {
      enable = true;
      extraConfig = ''
      unbind C-b
      set-option -g prefix C-a
      bind-key C-a send-prefix

      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

      set -g mouse on
      '';
    };
  };
}