@@ -3,4 +3,6 @@ if [ -z "TOTP" ]; then
echo "please export TOTP with your authentication code"
exit 1
fi
-oathtool --base32 --totp "$TOTP"
+OTP=$(oathtool --base32 --totp "$TOTP")
+echo "$OTP" | xsel -ib
+echo "$OTP"