diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-24 22:31:59 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-24 22:31:59 +0200 |
commit | 0c945b42695aa9eabb1d3eb33020851b21e226a1 (patch) | |
tree | f4f9ec8a0f1d322dccb9f2154281655a28db6b89 /bin/menuscripts/mpotp | |
parent | f0fafea246dbecaf2cd80fc191f422215cf729f8 (diff) |
checkpoint
Diffstat (limited to 'bin/menuscripts/mpotp')
-rwxr-xr-x | bin/menuscripts/mpotp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/menuscripts/mpotp b/bin/menuscripts/mpotp new file mode 100755 index 0000000..2be6186 --- /dev/null +++ b/bin/menuscripts/mpotp @@ -0,0 +1,7 @@ +#!/bin/sh +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -iname "*.gpg" | + sed "/^\./d;s#^$PASSWORD_STORE_DIR/keys/otp/##;s/\.gpg$//" | + dmenu -c)" +[ "$pass" ] || exit 1 +pass otp -c keys/otp/"$pass" +notify-send -t 1000 "mpass" "copied $pass" |