diff options
-rw-r--r-- | config.example | 4 | ||||
-rwxr-xr-x | rofi-pass | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/config.example b/config.example index de0e7d5..e85f577 100644 --- a/config.example +++ b/config.example @@ -22,3 +22,7 @@ type_pass="Alt+3" open_url="Alt+4" copy_name="Alt+c" copy_pass="Alt+Shift+c" +edit="Alt+1" +move="Alt+2" +delete="Alt+3" +show="Alt+4" @@ -65,8 +65,8 @@ mainMenu () { root="$2" fi if [[ $1 == "manage" ]]; then - HELP="<span color='$help_color'>Alt+1: Edit Entry | Alt+2: Move Entry | Alt+3: Delete Entry | Alt+4 Show Entry</span>" - selected_password="$(echo -e "0 Return to Main Menu\n---\n$(list_passwords 2>/dev/null)" | rofi -mesg "${HELP}" -dmenu -select "$entry" -p "rofi-pass > ")" + HELP="<span color='$help_color'>${edit}: Edit Entry | ${move}: Move Entry | ${delete}: Delete Entry | ${show}: Show Entry</span>" + selected_password="$(echo -e "0 Return to Main Menu\n---\n$(list_passwords 2>/dev/null)" | rofi -custom-kb-1 "${edit}" -custom-kb-2 "${move}" -custom-kb-3 "${delete}" -custom-kb-4 "${show}" -mesg "${HELP}" -dmenu -select "$entry" -p "rofi-pass > ")" rofi_exit=$? if [[ "${rofi_exit}" -eq 0 ]]; then true; elif [[ "${rofi_exit}" -eq 10 ]]; then manageEntry edit; |