paste once (on wayland)

tho tho at
Sun Nov 22 08:32:38 CET 2020

i apologize if i'm doing something wrong, this is the first time i
participate in a mailing list

there's the -o flag in wl-copy that makes it forget the contents of the
clipboard after the first paste. i think this is a very cool feature. i
couldn't find this feature in xclip, so this patch is unlikely to be
merged due to inconsitency with the X11 version, but i'm posting it
anyway just to let you know of the existence of this feature

okay, so here's the patch (it's very simple).

diff --git a/src/ b/src/
index 77f3eda..7a3b6cf 100755
--- a/src/
+++ b/src/
@@ -154,7 +154,7 @@ check_sneaky_paths() {

 clip() {
        if [[ -n $WAYLAND_DISPLAY ]]; then
-               local copy_cmd=( wl-copy )
+               local copy_cmd=( wl-copy -o)
                local paste_cmd=( wl-paste -n )
                if [[ $X_SELECTION == primary ]]; then
                        copy_cmd+=( --primary )

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the Password-Store mailing list