From b1616e56a59f3a7576d752da8f7c6f29773015a4 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Sat, 15 Jun 2024 22:51:38 -0700 Subject: [PATCH] Update shortcuts and fix copy --- .tmux.conf | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index e26e9bc..820d558 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,5 +1,14 @@ #set -g terminal-overrides 'xterm*:smcup@:rmcup@' -set -g @plugin 'tmux-plugins/tpm' +#set -g @plugin 'tmux-plugins/tpm' + +# Custom Prefix +set -g prefix C-space + +# Shortcut to sync panes +bind C-x setw synchronize-panes + +# Shortcut to respawn panw +bind M-r respawn-pane -k # Mouse Scrolling set -g mouse on @@ -11,10 +20,10 @@ set -g mouse on #bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection primary -filter | xclip -selection clipboard" # Mouse Copy -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @yank_action 'copy-pipe-no-clear' -#bind -T copy-mode C-C send -X copy-pipe-no-clear "xsel -i --clipboard" -#bind -T copy-mode-vi C-C send -X copy-pipe-no-clear "xsel -i --clipboard" +#set -g @plugin 'tmux-plugins/tmux-yank' +#set -g @yank_action 'copy-pipe-no-clear' +bind -T copy-mode C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied" +bind -T copy-mode-vi C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied" #bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip" #set -g @yank_with_mouse off #set -g @yank_line 'C-C' @@ -50,4 +59,4 @@ set-window-option -g window-status-style fg='#008b8b',bg=default set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8' # Load Plugins -run '~/.tmux/plugins/tpm/tpm' +#run '~/.tmux/plugins/tpm/tpm'