Easily obtain Nitrokey TOTP codes.
- Install
libnitrokey,libnitrokey-dev(header package),dmenuandxclipfor your distribution. - Install the required Python library.
- Make sure the library and header paths are correctly set in the
get_libraryfunction.
Place the otpmenu and nitro_get_otp.py in the same directory, preferably in your PATH, i.e. ${HOME}/bin.
Run otpmenu.
This code is based on the python_bindings_example from the Nitrokey project.