totp generation split out; no longer notifies if no TOTP present

This commit is contained in:
Matthias Johnson 2026-02-07 21:57:17 -07:00
parent c9f1593954
commit 364530fc31
3 changed files with 19 additions and 11 deletions

View file

@ -18,9 +18,4 @@ $BWZY_TYPE_CMD \
-s $next_sleep \
-k return
# Copy the TOTP to clipboard
if [[ -n "$TOTP" ]]; then
echo -n "$TOTP" | cli-copy
[[ -n "$BWZY_NOTIFY_CMD" ]] && $BWZY_NOTIFY_CMD "TOTP copied to clipboard"
fi
$BWZY_TOTP_COPY <<<"$TOTP"