From 1a5b21f2cc1f15d50f05fda76ce528574b3d4053 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 11 Mar 2022 16:06:45 +0530 Subject: Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ec1eea5..b586715 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,9 @@ You can now use any interface for password and confirmation prompts (`dmenu`, `r 6. Gpg should now be using your prefered program for pinentry ## Config -The following variables inside `./anypinentry` script file can be configured +The following variables inside `./anypinentry` script file can be configured. +You will need to use `AP_PROMPT`, `AP_YES`, `AP_NO`, `AP_ERROR` variables inside your actions. -* `prompt_action` - Action to show a prompt asking for password -* `confirm_action` - Action to confirm an action (Yes or No) -* `display_error_action` - Action to display error messages to user +* `prompt_action` - Action to show a prompt asking for password (Example using dmenu with password patch - `dmenu -P -p "$AP_PROMPT"`) +* `confirm_action` - Action to confirm an action (YES or NO) (Example with dmenu - `echo -e "$AP_YES\n$AP_NO" | dmenu -p "$AP_PROMPT"`) +* `display_error_action` - Action to display error messages to user (Example with notify-send - `notify-send "$AP_ERROR"`) -- cgit v1.3.1