U_totptui.sh added termux clipboard support
This commit is contained in:
parent
181385efa0
commit
ba20d0e671
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ TOTP_CODE=$(oathtool $OATHTOOL_ARGS "$key")
|
||||||
|
|
||||||
#clear; echo -e "\e[31m$(figlet $TOTP_CODE)\e[0m"
|
#clear; echo -e "\e[31m$(figlet $TOTP_CODE)\e[0m"
|
||||||
figlet_output=$(figlet -f slant "$TOTP_CODE")
|
figlet_output=$(figlet -f slant "$TOTP_CODE")
|
||||||
echo $TOTP_CODE | xclip &
|
if [ -f /usr/bin/xclip ]; then echo $TOTP_CODE | xclip; fi
|
||||||
|
if [ -f /data/data/com.termux/files/usr/bin/termux-clipboard-set ]; then echo $TOTP_CODE | termux-clipboard-set; fi
|
||||||
whiptail --title "TOTP-TUI" --msgbox "TOTP \"$account_name\" :\n\n$figlet_output" 14 45
|
whiptail --title "TOTP-TUI" --msgbox "TOTP \"$account_name\" :\n\n$figlet_output" 14 45
|
||||||
exit
|
exit
|
||||||
#done
|
#done
|
||||||
|
|
Loading…
Reference in a new issue