diff options
Diffstat (limited to 'X11/rofi/pass.get')
-rwxr-xr-x | X11/rofi/pass.get | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/X11/rofi/pass.get b/X11/rofi/pass.get index 425cd62..20ef852 100755 --- a/X11/rofi/pass.get +++ b/X11/rofi/pass.get | |||
@@ -15,8 +15,9 @@ if [ -n "${ROFI_DATA}" ]; then | |||
15 | 15 | ||
16 | # Generate password in a new process | 16 | # Generate password in a new process |
17 | # And Use current script to copy the values info X11 selections | 17 | # And Use current script to copy the values info X11 selections |
18 | coproc ( | 18 | coproc ( |
19 | pass generate ${PASSWORD} ${extra_arguments} | 19 | pass generate ${PASSWORD} ${extra_arguments} |
20 | $terminal -e pass edit ${PASSWORD} | ||
20 | $0 ${PASSWORD} | 21 | $0 ${PASSWORD} |
21 | ) | 22 | ) |
22 | 23 | ||
@@ -48,15 +49,17 @@ if [ -n "$RESULT" ]; then | |||
48 | coproc ( rofi -e "Copied: $1$EXTRA" ) | 49 | coproc ( rofi -e "Copied: $1$EXTRA" ) |
49 | 50 | ||
50 | elif [ -f "$HOME/.password-store/$1.gpg" ]; then | 51 | elif [ -f "$HOME/.password-store/$1.gpg" ]; then |
51 | coproc ( | 52 | # Password exist but command fails |
53 | # Must be something wrong with GPG decryption | ||
54 | coproc ( | ||
52 | rofi -e "GPG passphase is not chached" \ | 55 | rofi -e "GPG passphase is not chached" \ |
53 | -theme-str '#window { font: "hacker 40"; }' | 56 | -theme-str '#window { font: "hacker 40"; }' |
54 | ) | 57 | ) |
55 | else | 58 | else |
56 | # Password doesn't exist yet | 59 | # Password doesn't exist yet |
57 | # Go to next rofi execution | 60 | # Go to next rofi execution |
58 | echo -e "\0prompt\x1f$1" | 61 | echo -e "\0prompt\x1f$1" |
59 | echo -e "\0message\x1fThis password doesn't exist, generate with custom arguments?" | 62 | echo -e "\0message\x1f\"NUMBER\" for length, \"-n\" to exclude spcecial chars" |
60 | echo -e "\0data\x1f$1" | 63 | echo -e "\0data\x1f$1" |
61 | echo ${GENERATION_HINT} | 64 | echo ${GENERATION_HINT} |
62 | fi | 65 | fi |