From 3d1c3c15ccc4c1bcaa7a725a6671d85a0ce12ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 23 Dec 2022 19:10:03 +0100 Subject: Support selection of primary or regular clipboard (wayclip) wayclip has since commit https://git.sr.ht/~noocsharp/wayclip/commit/594776c24862 support for the choice between using primary or regular clipboard. Which means we can put its support on the same level as other clipboard utilities. --- vis-clipboard | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vis-clipboard b/vis-clipboard index fd9cf7b..29b0729 100755 --- a/vis-clipboard +++ b/vis-clipboard @@ -101,11 +101,19 @@ vc_wlclipboard_paste() { } vc_wayclip_copy() { - waycopy + if [ "$sel" = "primary" ]; then + waycopy -p + else + waycopy + fi } vc_wayclip_paste() { - waypaste + if [ "$sel" = "primary" ]; then + waypaste -p + else + waypaste + fi } vc_xsel_copy() { -- cgit v1.2.3