aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-05-24 18:59:17 +0200
committerRasmus Steinke <rasi@xssn.at>2016-05-24 18:59:17 +0200
commitd0c4f41f5fb084ae8e27ca6b05ac20b0cfd8843c (patch)
tree0faa340a58138412ef445700cbff5b376793c982
parent9ff6e333abe085730621d0c0c7d91dc3b7f011dc (diff)
downloadrofi-pass-d0c4f41f5fb084ae8e27ca6b05ac20b0cfd8843c.tar.gz
add hotkey for new password entries
-rw-r--r--config.example1
-rwxr-xr-xrofi-pass6
2 files changed, 6 insertions, 1 deletions
diff --git a/config.example b/config.example
index 31a6c1d..80a067a 100644
--- a/config.example
+++ b/config.example
@@ -57,3 +57,4 @@ action_menu="Alt+a"
type_menu="Alt+t"
help="Alt+h"
switch="Alt+x"
+insert_pass="Alt+n"
diff --git a/rofi-pass b/rofi-pass
index d96b1e4..cb72650 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -187,6 +187,7 @@ ${line3}</span>"
-kb-custom-15 "${copy_menu}" \
-kb-custom-16 "${help}" \
-kb-custom-17 "${switch}" \
+ -kb-custom-18 "${insert_pass}" \
-dmenu \
-select "$entry" \
-p "rofi-pass > ")"
@@ -224,6 +225,7 @@ ${line3}</span>"
elif [[ "${rofi_exit}" -eq 25 ]]; then unset selected_password; helpMenu;
elif [[ "${rofi_exit}" -eq 24 ]]; then copyMenu;
elif [[ "${rofi_exit}" -eq 26 ]]; then $(${basecommand} --bmarks);
+ elif [[ "${rofi_exit}" -eq 27 ]]; then insertPass;
fi
password=''
selected_password=''
@@ -248,8 +250,10 @@ ${copy_menu}: Copy Custom Field
---
${action_menu}: Edit, Move, Delete, Re-generate Submenu
${show}: Show Password File
+${insert_pass}: Insert new Pass Entry
${switch}: Switch Pass/Bookmark Mode" | _rofi -dmenu -p "Help > ")
-if [[ $help == "" ]]; then exit;
+help_val=$?
+if [[ $help_val -eq 1 ]]; then exit;
else unset helptext; mainMenu; fi
}