bin: Fix bug where passget would not clear selections
This commit is contained in:
parent
9f937e4645
commit
4c9a1c235e
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue