summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mpass-otp
blob: 86690d3dc8776d27961a65290dee8ffc6f3117f3 (plain)
1
2
3
4
5
6
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 $pass"