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

let
  cfg = config.tmux;
in {
  options.tmux.enable = lib.mkEnableOption "Enable and configure Tmux";

  config = lib.mkIf cfg.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
      '';
    };
  };
}