Huge thanks to author. I use mintotp pretty much always I need to get token from "pass" stored secret.

Huh, have you heard of the popular pass(1) extension pass-opt[1]?

It allows one to get OTP secrets via a simple:

pass otp secretname # Add -c for clipboard, as usual

And because the OTP side is just a otpauth:// URL on a line of the GPG file, we can still use the rest of the secret for other things:

pass secretname -c

Real smooth!

[1]: https://github.com/tadfisher/pass-otp