dotfiles/tmux.conf
2025-06-09 17:40:18 +02:00

37 lines
1.3 KiB
Bash

# setw -g mouse on
setw -g mode-keys vi
set -g repeat-time 1000
set -s set-clipboard on
set -sg escape-time 5
set -sa terminal-features ',xterm-256color:RGB'
set -g destroy-unattached on
# set -g lock-after-time 600
# set -g lock-command "cmatrix -abs"
set -g @kanagawa-show-powerline true
set -g @kanagawa-cpu-display-load true
set -g @kanagawa-plugins "cpu-usage gpu-usage ram-usage time"
set -g @fingers-pattern-filelc '(([.\w\-~\$@]+)?(/[.\w\-@]+)+/?(\:\d+){0,2})'
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n C-k send-keys -R \; clear-history
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-no-clear -x
bind -n M-f run -b "#{@fingers-cli} start #{pane_id} --patterns filelc --main-action 'xargs nvim_remote'"
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection-no-clear\; display-message 'Copied!'
bind s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind -n M-x copy-mode
unbind -n MouseDown3Pane
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'Nybkox/tmux-kanagawa'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'Morantron/tmux-fingers'
run -b '~/.tmux/plugins/tpm/tpm'