clearing password after 45 seconds + notification

This commit is contained in:
Rasmus Steinke 2015-07-12 06:57:10 +02:00
parent 885087869e
commit 2514370379

View File

@ -121,6 +121,9 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
exit
elif [[ $rofi_exit -eq 15 ]]; then
echo -n "$password" | xclip
xclip -o | xclip -selection clipboard
notify-send "rofi-pass" "Copied Password\nClearing in 45 seconds"
$(sleep 45; echo -n "" | xclip; echo "" | xclip -selection clipboard | notify-send "rofi-pass" "Clipboard cleared") &
exit
fi
if [[ $(echo "${password_temp}" | tail -1) == "NOTAB" ]]; then