Keep sensitive clipboard contents out of history
Restore the clipboard watcher behavior that drops CLIPBOARD_STATE=sensitive events, which password managers use for copied secrets. Use the same sensitive foreground clipboard path for emoji insertion instead of a custom history marker, and keep the password-manager MIME hint ignored as a fallback.
This commit is contained in:
@@ -6,13 +6,10 @@
|
||||
# omarchy:hidden=true
|
||||
|
||||
emoji="${1:-}"
|
||||
emoji_ignore_file="${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}}/omarchy-emoji-insert-ignore"
|
||||
copy_pid=""
|
||||
|
||||
[[ -n $emoji ]] || exit
|
||||
|
||||
mkdir -p "${emoji_ignore_file%/*}"
|
||||
printf '%s' "$emoji" >"$emoji_ignore_file"
|
||||
printf '%s' "$emoji" | wl-copy --type text/plain --sensitive --foreground &
|
||||
copy_pid=$!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user