diff options
Diffstat (limited to 'tmux/paste.sh')
| -rwxr-xr-x | tmux/paste.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
