This commit is contained in:
Harivansh Rathi 2026-03-13 16:44:38 -04:00
parent fc8675e1b0
commit 550fca2383
13 changed files with 151 additions and 163 deletions

View file

@ -1,16 +1,4 @@
{lib, ...}: {
home.activation.removeLegacyTmuxLink = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
path="$HOME/.config/tmux/tmux.conf"
if [ -L "$path" ]; then
target="$(readlink "$path")"
case "$target" in
../../dots/tmux/*|dots/tmux/*|"$HOME"/dots/tmux/*)
rm -f "$path"
;;
esac
fi
'';
programs.tmux = {
enable = true;
extraConfig = ''
@ -40,12 +28,6 @@
bind K switch-client -p
bind L switch-client -n
# Switch sessions with prefix + H/J/K/L (capital)
bind J switch-client -n
bind K switch-client -p
bind H switch-client -p
bind L switch-client -n
# fzf pane switcher
bind f display-popup -w 80% -h 80% -E "\
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{session_name}/#{window_name} [#{pane_current_command}] #{pane_current_path}' \