diff options
Diffstat (limited to '.local/bin/getpass-otp')
-rwxr-xr-x | .local/bin/getpass-otp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/getpass-otp b/.local/bin/getpass-otp index 535cc31..19c0c0e 100755 --- a/.local/bin/getpass-otp +++ b/.local/bin/getpass-otp | |||
@@ -3,7 +3,7 @@ | |||
3 | pb=$PASSWORD_STORE_DIR | 3 | pb=$PASSWORD_STORE_DIR |
4 | [ -z "$PASSWORD_STORE_CLIP_TIME" ] && ct=45 || ct=$PASSWORD_STORE_CLIP_TIME | 4 | [ -z "$PASSWORD_STORE_CLIP_TIME" ] && ct=45 || ct=$PASSWORD_STORE_CLIP_TIME |
5 | chars=$(echo $pb | wc -c) | 5 | chars=$(echo $pb | wc -c) |
6 | accts=$(find $pb -type f -name "*-OTP.gpg" | cut -c $chars- | \ | 6 | accts=$(find $pb -type f -name "*.gpg" | cut -c $chars- | \ |
7 | rev | cut -c 5- | rev) | 7 | rev | cut -c 5- | rev) |
8 | acct="$(echo "$accts" | dmenu)" | 8 | acct="$(echo "$accts" | dmenu)" |
9 | pass otp code $acct | xclip -r -selection "primary" \ | 9 | pass otp code $acct | xclip -r -selection "primary" \ |