Automate typing a TOTP selected using dmenu. Requires yubioath, and xdotool if used in typing mode.


Add a line like this to your .config/i3 file:

bindsym $mod+t exec "yubioath-dmenu --type"

And reload i3. Now when you press $mod+t you'll be prompted to select one of your enrolled YubiKey TOTP secrets. If a touch is required a notification will indicate it, otherwise the TOTP will be typed immediately.