This is a simple python/tkinter widget to display a google authenticator code in a window. Clicking on the window will copy the code to the clipboard.
This package uses the pyperclip and pyotp pacakges. There is a requirements.txt file for setup.
% python -m ensurepip
% pip install -r requirements.txt
% pip install .
You must have the google authenticator token as the first line in a file
called .google_authenticator
in your home directory.
The executable is installed as 'otpwidget', and will launch a tkinter window.
Clicking on the OTP code will copy it to the clipboard.
Pressing q
will copy the OTP code to the clipboard and quit.
Pressing esc
will quit without copying the OTP code to the clipboard.