Update shortcuts and fix copy

This commit is contained in:
Daniel McKnight 2024-06-15 22:51:38 -07:00
parent 45b5e59903
commit b1616e56a5

View file

@ -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'