From 816910decc8360143c65052768ece87c7ea18516 Mon Sep 17 00:00:00 2001 From: Enno Richter Date: Wed, 25 Sep 2024 15:16:23 +0200 Subject: [PATCH] mv tmux config to nixcfg --- modules/home/default.nix | 1 - modules/home/tmux.nix | 63 ---------------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 modules/home/tmux.nix diff --git a/modules/home/default.nix b/modules/home/default.nix index 51da9081..1a3f8395 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -16,7 +16,6 @@ pass = ./pass.nix; packages = ./packages.nix; ssh = ./ssh.nix; - tmux = ./tmux.nix; tp3 = ./tp3.nix; xdg-fixes = ./xdg-fixes.nix; }; diff --git a/modules/home/tmux.nix b/modules/home/tmux.nix deleted file mode 100644 index 4a9020ba..00000000 --- a/modules/home/tmux.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ pkgs, ... }: -{ - - programs.tmux = { - enable = true; - - baseIndex = 1; - clock24 = true; - customPaneNavigationAndResize = true; - escapeTime = 10; - historyLimit = 10000; - keyMode = "vi"; - mouse = true; - reverseSplit = true; - - prefix = "C-a"; - shortcut = "a"; - - extraConfig = '' - set-option -g focus-events on - set-option -sa terminal-features ',xterm-256color:RGB' - - # bind alt-1..9 to switch windows (iterm2 like) - bind-key -n M-1 select-window -t 1 - bind-key -n M-2 select-window -t 2 - bind-key -n M-3 select-window -t 3 - bind-key -n M-4 select-window -t 4 - bind-key -n M-5 select-window -t 5 - bind-key -n M-6 select-window -t 6 - bind-key -n M-7 select-window -t 7 - bind-key -n M-8 select-window -t 8 - bind-key -n M-9 select-window -t 9 - ''; - - plugins = with pkgs; [ - tmuxPlugins.cpu - { - plugin = tmuxPlugins.resurrect; - extraConfig = "set -g @resurrect-strategy-nvim 'session'"; - } - { - plugin = tmuxPlugins.continuum; - extraConfig = '' - set -g @continuum-restore 'on' - set -g @continuum-save-interval '60' # minutes - ''; - } - { - plugin = tmuxPlugins.catppuccin; - extraConfig = '' - set -g @catppuccin_flavour 'mocha' - ''; - } - { - plugin = tmuxPlugins.yank; - extraConfig = '' - set -g @yank_selection 'clipboard' - set -g @yank_selection_mouse 'clipboard' - ''; - } - ]; - }; -}