diff --git a/.local/bin/tools/passmenu2 b/.local/bin/tools/passmenu2 index 5afbc24..cfcda87 100755 --- a/.local/bin/tools/passmenu2 +++ b/.local/bin/tools/passmenu2 @@ -53,7 +53,8 @@ while [ "$DONE" -eq 0 ] ; do sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000 sleep 45 if [ -f $HOME/.cache/passstring ]; then - notify-send "Password" "password cleared from clipboard" -t 4000 + [ "$(wc -l "$HOME/.cache/passstring" | cut -d' ' -f1 )" -gt 0 ] && + notify-send "Password" "password cleared from clipboard" -t 4000 rm $HOME/.cache/passstring fi