bwzy/bwzy-autofill

22 lines
390 B
Text
Raw Permalink Normal View History

2025-03-19 23:13:18 -06:00
#!/bin/bash
# Read up to the first three lines from standard input
read -r USER || USER=""
read -r PASS || PASS=""
read -r TOTP || TOTP=""
2025-05-06 23:41:56 -06:00
type_sleep=45
next_sleep=250
2025-04-03 14:51:14 -06:00
2025-03-19 23:13:18 -06:00
# Use wtype to output the USER and PASS
2025-05-06 23:41:56 -06:00
$BWZY_TYPE_CMD \
-d $type_sleep "$USER" \
-s $next_sleep \
-k tab \
-s $next_sleep \
-d $type_sleep "$PASS" \
-s $next_sleep \
-k return
$BWZY_TOTP_COPY <<<"$TOTP"