summaryrefslogtreecommitdiff
path: root/.local/bin/getpass-otp
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-11 07:56:17 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-11 07:56:17 -0400
commit9e82c96713989a7565eadac505b36e3dbe91cd5a (patch)
tree7c2f998cc9d06f97bfe10ce1ee844121b662f595 /.local/bin/getpass-otp
parent3adcf542289a0883924ae9b9be8b898c36702c95 (diff)
Added, removed, renamed scripts
Diffstat (limited to '.local/bin/getpass-otp')
-rwxr-xr-x.local/bin/getpass-otp2
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 @@
3pb=$PASSWORD_STORE_DIR 3pb=$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
5chars=$(echo $pb | wc -c) 5chars=$(echo $pb | wc -c)
6accts=$(find $pb -type f -name "*-OTP.gpg" | cut -c $chars- | \ 6accts=$(find $pb -type f -name "*.gpg" | cut -c $chars- | \
7 rev | cut -c 5- | rev) 7 rev | cut -c 5- | rev)
8acct="$(echo "$accts" | dmenu)" 8acct="$(echo "$accts" | dmenu)"
9pass otp code $acct | xclip -r -selection "primary" \ 9pass otp code $acct | xclip -r -selection "primary" \