diff options
Diffstat (limited to 'modules/home-manager/tmux.nix')
| -rw-r--r-- | modules/home-manager/tmux.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/home-manager/tmux.nix b/modules/home-manager/tmux.nix new file mode 100644 index 0000000..e109375 --- /dev/null +++ b/modules/home-manager/tmux.nix @@ -0,0 +1,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 + ''; + }; + }; +}
\ No newline at end of file |
