From 623d62af7ee3130795c871db9079d124e6f16868 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 15 Sep 2021 02:11:11 -0400 Subject: cutbuffer: save popped selection to clipboard in addition to primary --- dot/local/bin/cutbuffer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dot') diff --git a/dot/local/bin/cutbuffer b/dot/local/bin/cutbuffer index 827ca8d..daf8e37 100755 --- a/dot/local/bin/cutbuffer +++ b/dot/local/bin/cutbuffer @@ -21,7 +21,8 @@ cutbuffer_pop() f=$(find . -maxdepth 1 -type f -name "$nameglob" -print0 | sort -z -V -r | head -z -n 1 | xargs -0) xcb -s 0 < "$f" - xsel --input < "$f" + xsel --input --primary < "$f" + xsel --input --clipboard < "$f" mkdir -p .popped mv "$f" -t .popped -- cgit v1.2.3