Skip to content

Commit

Permalink
copy TOTP when using auto_type all
Browse files Browse the repository at this point in the history
  • Loading branch information
ickerwx committed Jul 17, 2020
1 parent a53cc1e commit bd3aa22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bwmenu
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ load_items() {
exit_error() {
local code="$1"
local message="$2"

rofi -e "$message"
if [ $message ]; then
rofi -e "$message"
fi
exit "$code"
}

Expand Down Expand Up @@ -225,6 +226,7 @@ auto_type() {
type_word "$(echo "$2" | jq -r '.[0].login.username')"
type_tab
type_word "$(echo "$2" | jq -r '.[0].login.password')"
copy_totp "$2"
;;
username)
type_word "$(echo "$2" | jq -r '.[0].login.username')"
Expand Down

0 comments on commit bd3aa22

Please # to comment.