aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/tmux.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-07-29 02:03:38 +0200
committerschererleander <leander@schererleander.de>2025-07-29 02:03:38 +0200
commitc2f0d9bebe68c11f4d018a18bd5d3880712c6873 (patch)
treed40b3e3faf65fdc618c2dd62cd548aac6e545ac4 /modules/home-manager/tmux.nix
parent97cf1a9390cbb56bb904c777ebe8f6f559a7d8a4 (diff)
chore: move home-manager modules in seperate folder
Diffstat (limited to 'modules/home-manager/tmux.nix')
-rw-r--r--modules/home-manager/tmux.nix22
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