diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 16:28:44 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 16:28:44 +0200 |
commit | 9fb919bb1ff1b38ece25973662aa595bec3b7328 (patch) | |
tree | c91238593e11189606c08d520e46d31ed1b6cd55 /bin/guiscripts/dmpassgen | |
parent | a1f61ef7764a543a894bf58b0db14f677323fcbe (diff) |
renamed dm scripts to m scripts
Diffstat (limited to 'bin/guiscripts/dmpassgen')
-rwxr-xr-x | bin/guiscripts/dmpassgen | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/bin/guiscripts/dmpassgen b/bin/guiscripts/dmpassgen deleted file mode 100755 index a60112b..0000000 --- a/bin/guiscripts/dmpassgen +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env sh - -input () -{ - # menu prompt for output - if [ "$MENUCMD" = "tofi" ] - then - inp="$(tofi --prompt-text "$1 " </dev/null)" - elif [ "$MENUCMD" = "dmenu" ] - then - inp="$(dmenu -p "$1" < /dev/null)" - else - echo -n "$1:" >&2 - read inp - fi - echo $inp -} -# menu select long -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi --prompt login:" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -l 10 -g 1 -x -i -p login:" -else - menucmd="fzf" -fi - -choice="$(echo "multiline\nsingle" | $MENUCMD)" -test -z "${choice}" && exit 1 - -password="$(input "name:")" -test -z "${password}" && exit 1 - -if [ "${choice}" = "multiline" ] -then - login="$(ls -1 ~/.password-store/e-mails | - sed 's/\.gpg$//' | - $menucmd)" - test -z "${login}" && exit 1 - url="$(input "url:")" - test -z "${url}" && exit 1 - echo "${password}\nlogin: ${login}\nurl: ${url}" | - pass insert -mf "${password}" - pass generate -ci "${password}" -else - pass generate -cf "${password}" -fi |