Skip to content

Commit

Permalink
quick workaround to add new entries with custom password generator. f…
Browse files Browse the repository at this point in the history
…ixes #144
  • Loading branch information
carnager committed Aug 28, 2018
1 parent bedf843 commit a223275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a223275

Please sign in to comment.