Pārlūkot izejas kodu

use xsel to copy otp so gmrun can be used

Casey DeLorme 2 gadi atpakaļ
vecāks
revīzija
d1e3aa5861
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      install/usr/local/bin/otp

+ 3 - 1
install/usr/local/bin/otp

@@ -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"