From efd2771d8c7a30287c279d863f632a801881ceb5 Mon Sep 17 00:00:00 2001 From: hektor Date: Sun, 26 Apr 2026 14:31:43 +0200 Subject: [PATCH] fix: remove tmux hooks --- dots/.config/tmux/hooks/tmux.ssh.conf | 1 - dots/.config/tmux/tmux.conf | 2 -- home/modules/tmux/default.nix | 4 ---- 3 files changed, 7 deletions(-) delete mode 100644 dots/.config/tmux/hooks/tmux.ssh.conf diff --git a/dots/.config/tmux/hooks/tmux.ssh.conf b/dots/.config/tmux/hooks/tmux.ssh.conf deleted file mode 100644 index d1bb7d2a..00000000 --- a/dots/.config/tmux/hooks/tmux.ssh.conf +++ /dev/null @@ -1 +0,0 @@ -set -g status-style bg=colour12,fg=colour0 diff --git a/dots/.config/tmux/tmux.conf b/dots/.config/tmux/tmux.conf index b44c2e07..41222c94 100644 --- a/dots/.config/tmux/tmux.conf +++ b/dots/.config/tmux/tmux.conf @@ -70,8 +70,6 @@ set -g status-right '#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") %a %l:%M:%S set -g default-terminal "tmux-256color" -set-hook -g after-new-session 'if -F "#{==:#{session_name},ssh}" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.ssh.conf" "source ${XDG_CONFIG_HOME}/tmux/hooks/tmux.regular.conf"' - # Vi copypaste mode if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel' if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection' diff --git a/home/modules/tmux/default.nix b/home/modules/tmux/default.nix index 47a87b3f..f5b65489 100644 --- a/home/modules/tmux/default.nix +++ b/home/modules/tmux/default.nix @@ -11,9 +11,5 @@ enable = true; extraConfig = builtins.readFile (dotsPath + "/.config/tmux/tmux.conf"); }; - - home.file = { - ".config/tmux/hooks/tmux.ssh.conf".source = dotsPath + "/.config/tmux/hooks/tmux.ssh.conf"; - }; }; }