otp 178 B

12345678
  1. #!/bin/bash
  2. if [ -z "TOTP" ]; then
  3. echo "please export TOTP with your authentication code"
  4. exit 1
  5. fi
  6. OTP=$(oathtool --base32 --totp "$TOTP")
  7. echo "$OTP" | xsel -ib
  8. echo "$OTP"