From fa5dd5f3c014a250b1748c340255d8b4d0b7d773 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 3 Oct 2021 23:21:15 +0200 Subject: . --- tmux/paste.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tmux/paste.sh (limited to 'tmux/paste.sh') 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 -- cgit v1.2.3-70-g09d2