diff options
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/.tmux.conf | 2 | ||||
| -rwxr-xr-x | tmux/paste.sh | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index d31c1d7..17cfe5e 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -34,7 +34,7 @@ bind-key 'Up' select-pane -P 'fg=white,bg=black' bind-key 'Down' select-pane -P 'fg=black,bg=white' -bind-key ] run "xclip -o -selection clipboard | tmux load-buffer - && tmux paste-buffer" +bind-key ] run "sh ~/.dotfiles/tmux/paste.sh" set -g @plugin 'christoomey/vim-tmux-navigator' diff --git a/tmux/paste.sh b/tmux/paste.sh new file mode 100755 index 0000000..b09a794 --- /dev/null +++ b/tmux/paste.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -z "$WAYLAND_DISPLAY" ]; then + xclip -o -selection clipboard | tmux load-buffer - && tmux paste-buffer +else + wl-paste --no-newline | tmux load-buffer - && tmux paste-buffer +fi |
