aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Waegeneire <brice@waegenei.re>2021-11-21 11:27:32 +0100
committerBrice Waegeneire <brice@waegenei.re>2021-11-21 11:27:32 +0100
commit8f91f6e795e6bb17c9ad23571244fa8a82a5d9b3 (patch)
tree13415846333c6ff3420e25938148258696414b9f
parent629ad8d73a72d90f531ab6ebbdf78db710e25f2f (diff)
downloadrofi-pass-8f91f6e795e6bb17c9ad23571244fa8a82a5d9b3.tar.gz
add type_otp key binding
-rwxr-xr-xrofi-pass4
1 files changed, 4 insertions, 0 deletions
diff --git a/rofi-pass b/rofi-pass
index 7a3011e..7949bf1 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -63,6 +63,7 @@ autotype="Alt+1"
type_user="Alt+2"
type_pass="Alt+3"
open_url="Alt+4"
+type_otp="Alt+5"
copy_name="Alt+u"
copy_url="Alt+l"
copy_pass="Alt+p"
@@ -373,6 +374,7 @@ mainMenu () {
-kb-custom-9 "${type_menu}"
-kb-custom-10 "${previous_root}"
-kb-custom-11 "${next_root}"
+ -kb-custom-12 "${type_otp}"
-kb-custom-14 "${action_menu}"
-kb-custom-15 "${copy_menu}"
-kb-custom-16 "${help}"
@@ -474,6 +476,7 @@ mainMenu () {
16) viewEntry;;
17) copyURL;;
18) default_do="menu" typeMenu;;
+ 21) sleep $wait; typefield=OTP; typeField;;
23) actionMenu;;
24) copyMenu;;
27) insertPass;;
@@ -498,6 +501,7 @@ helpMenu () {
${autotype}: Autotype
${type_user}: Type Username
${type_pass}: Type Password
+ ${type_otp}: Type OTP
${qrcode}: Generate and display qrcode
---
${copy_name}: Copy Username