From 2e513e0e8071527acee881962eb48c57884c7860 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 7 Apr 2020 15:47:54 -0500 Subject: [PATCH] Fix clipboard thing --- bin/clip | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/clip b/bin/clip index 96c7a18..fb1da25 100755 --- a/bin/clip +++ b/bin/clip @@ -2,12 +2,9 @@ if is_wayland; then # echo "Clip: YES. THIS IS WAYLAND SPEAKING." >&2 - sed 's/^\s+//g' | wl-copy "$@" + sed 's/^\s+//g' | sed 's/\s+$//g' | wl-copy "$@" echo "Your trimmed input was stored in all clipboards." else - xclip -selection primary - xclip -selection primary -out | xclip -selection clipboard - xclip -selection primary -out | xclip -selection secondary - echo "Your input was stored in all clipboards." + xclip -selection clipboard sleep 5 && killall xclip > /dev/null 2>&1 & fi