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/password-store.sh b/src/password-store.sh
index 77f3eda..7a3b6cf 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -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 )


Attachment: signature.asc
Description: PGP signature

Reply via email to