From f19298305a4b12d1c6c82c3c9add3dd778786902 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Fri, 5 Aug 2016 05:27:02 +0200 Subject: [PATCH] get rid of duplicate setting --- config.example | 1 - rofi-pass | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config.example b/config.example index 49ad2da..a865313 100644 --- a/config.example +++ b/config.example @@ -29,7 +29,6 @@ BROWSER='chromium' default_do='menu' # menu, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl auto_enter='false' notify='false' -passlength='20' # seconds to wait before re-opening showEntry-menu # after autotyping an entry. Set to "off" to disable diff --git a/rofi-pass b/rofi-pass index af1db1e..4a53cc8 100755 --- a/rofi-pass +++ b/rofi-pass @@ -16,7 +16,7 @@ delay=2 default_do='menu' # menu, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl auto_enter='false' notify='false' -passlength='20' +password_length='20' count=2 help_color="" clip=primary @@ -198,10 +198,10 @@ generatePass () { symbols="-n"; fi HELP="Enter Number or hit Enter to use default length" - length=$(echo -e "" | _rofi -dmenu -mesg "${HELP}" -p "Password length? (Default: ${passlength}) > ") + length=$(echo -e "" | _rofi -dmenu -mesg "${HELP}" -p "Password length? (Default: ${password_length}) > ") askGen if [[ $length == "" ]]; then - pass generate ${symbols} -i "$selected_password" "${passlength}" > /dev/null; + pass generate ${symbols} -i "$selected_password" "${password_length}" > /dev/null; else pass generate ${symbols} -i "$selected_password" "${length}" > /dev/null; fi