From 4fc9488c77286d4960c8d6229ac49fb122c5e366 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 30 Jul 2026 10:48:41 +0800 Subject: [PATCH] feat: add --sensitive to the wl-copy command This implements wl-clipboard's CLIPBOARD_STATE protocol. In practice it sets CLIPBOARD_STATE=sensitive in the environment of commands that wl-paste --watch spawns. This hint can be used by client applications to e.g. avoid persisting the clipboard contents to history. See the wl-paste manpage for details. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index 02d3fb0..0ee1579 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -115,7 +115,7 @@ check_sneaky_paths() { clip() { if [[ -n $WAYLAND_DISPLAY ]] && command -v wl-copy &> /dev/null; then - local copy_cmd=( wl-copy ) + local copy_cmd=( wl-copy --sensitive ) local paste_cmd=( wl-paste -n ) if [[ $X_SELECTION == primary ]]; then copy_cmd+=( --primary )