From c098b13cc8e413535db2c0b53e42bcaee4813780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 3 Nov 2024 16:49:14 +0100 Subject: [PATCH] add tmux --- programs/shell/default.nix | 1 + programs/shell/tmux/default.nix | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 programs/shell/tmux/default.nix diff --git a/programs/shell/default.nix b/programs/shell/default.nix index 991330e4..1fe3cf3c 100644 --- a/programs/shell/default.nix +++ b/programs/shell/default.nix @@ -1,5 +1,6 @@ _: { imports = [ ./fish + ./tmux ]; } diff --git a/programs/shell/tmux/default.nix b/programs/shell/tmux/default.nix new file mode 100644 index 00000000..10efaa5a --- /dev/null +++ b/programs/shell/tmux/default.nix @@ -0,0 +1,36 @@ +{pkgs, ...}: { + programs.tmux = { + enable = true; + baseIndex = 1; + clock24 = true; + prefix = "C-a"; + sensibleOnTop = true; + plugins = with pkgs.tmuxPlugins; [ + power-theme + cpu + { + plugin = resurrect; + extraConfig = "set -g @resurrect-strategy-nvim 'session'"; + } + { + plugin = continuum; + extraConfig = '' + set -g @continuum-restore 'on' + ''; + } + ]; + extraConfig = '' + set-window-option -g automatic-rename on + set-option -g set-titles on + 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 + bind -n S-Left previous-window + bind -n S-Right next-window + set -sg escape-time 0 + set -g mouse on + set -g default-terminal "screen-256color" + ''; + }; +}