From a1afaeffef5caa2cf9e97b10ed0667a2b2df604e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 12 Nov 2024 12:28:23 +0100 Subject: checkpoint --- bin/guiscripts/clipo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/guiscripts/clipo') diff --git a/bin/guiscripts/clipo b/bin/guiscripts/clipo index e554c24..866e99e 100755 --- a/bin/guiscripts/clipo +++ b/bin/guiscripts/clipo @@ -1,6 +1,9 @@ #!/bin/sh -[ "$1" = "-p" ] && i='primary' j="-p" +[ "$1" = "-p" ] && + i='primary' || + j="c" + if [ "$WAYLAND_DISPLAY" ] then wl-paste -n "$1" -else xsel -o ${j:--b} +else xclip -o -sel ${j:-p} fi -- cgit v1.2.3