This PR will copy the TOTP token into the clipboard when using auto_type all, this is way more convenient because you don't have to run bwmenu twice.
The modification in exit_error was necessary because the copy_totp function will call exit_error with an effectively empty error message and that would result in a rofi popup every time autotype was used and the item did not contain a TOTP token. Only showing rofi when the message is not empty did not break any other behavior during my tests.
This PR will copy the TOTP token into the clipboard when using
auto_type all
, this is way more convenient because you don't have to runbwmenu
twice.The modification in
exit_error
was necessary because thecopy_totp
function will callexit_error
with an effectively empty error message and that would result in a rofi popup every time autotype was used and the item did not contain a TOTP token. Only showing rofi when the message is not empty did not break any other behavior during my tests.