diff --git a/config.example b/config.example index 2aba361..7464bb5 100644 --- a/config.example +++ b/config.example @@ -7,6 +7,11 @@ _rofi () { rofi -i -no-auto-select "$@" } +# default command to generate passwords +_pwgen () { + pwgen -y "$@" +} + # image viewer to display qrcode of selected entry # qrencode is needed to generate the image and a viewer # that can read from pipes. Known viewers to work are feh and display diff --git a/rofi-pass b/rofi-pass index 5a54cca..3834030 100755 --- a/rofi-pass +++ b/rofi-pass @@ -714,7 +714,7 @@ insertPass () { pw=$(printf '%s' "Generate" | _rofi -dmenu -p "Password > " -mesg "Type Password or hit Enter to generate one") if [[ $pw == "Generate" ]]; then - pw=$(pwgen "${password_length}") + pw=$(_pwgen "${password_length}") fi clear