#!/bin/bash

# @todo: read users ~/.config/totp/totp.sh and forward $1 for specifying service to get totp
if [ -z "TOTP" ]; then
	echo "please export TOTP with your authentication code"
	exit 1
fi
OTP=$(oathtool --base32 --totp "$TOTP")
echo "$OTP" | wl-copy
echo "$OTP"

