aboutsummaryrefslogtreecommitdiff
path: root/tmux/paste.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/paste.sh')
-rwxr-xr-xtmux/paste.sh7
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