diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-01-05 16:56:42 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-01-05 16:56:42 +0100 |
commit | e6e98313b9769b431d8a66c0aac2b82295d2bf1e (patch) | |
tree | 1cdbc2075815fa88a0b80818174542e00a41f855 /bin/menuscripts/mpass-otp | |
parent | 541ab2e483efe77d08ae5d04119a834f24b6d150 (diff) | |
parent | 0d10205772b2745356969176de6f52510527e5a6 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts/mpass-otp')
-rwxr-xr-x | bin/menuscripts/mpass-otp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp new file mode 100755 index 0000000..e771f9f --- /dev/null +++ b/bin/menuscripts/mpass-otp @@ -0,0 +1,7 @@ +#!/bin/sh +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | + sed 's/\.gpg$//' | + commander -c)" +[ "$pass" ] || exit 1 +pass otp -c keys/otp/"$pass" +notify-send -t 1000 "mpass" "copied <b>$pass</b>" |