1
0
Fork 0

bin: Fix bug where passget would not clear selections

This commit is contained in:
Jeremy Kaplan 2020-02-17 13:17:04 -08:00
commit 4c9a1c235e

View file

@ -46,9 +46,8 @@ read -r _
echo "${item}" | jq -r "${query_password}" | xsel -bi echo "${item}" | jq -r "${query_password}" | xsel -bi
echo 'Password clipped. Clearing in 60 seconds.' echo 'Password clipped. Clearing in 60 seconds.'
at -M 'now + 1 minute' >/dev/null 2>&1 <<CMD # `at` doesn't forward the DISPLAY variable. This workaround ensures that X is
xsel -c # available to xsel.
xsel -sc at -M 'now' >/dev/null 2>&1 <<CMD
xsel -bc DISPLAY="${DISPLAY}" xsel-clear
notify-send -h 'string:bgcolor:#000000' 'Clipboard cleared'
CMD CMD