blob: deef05f4759d34a95757edbe60ef7ba673700242 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /usr/bin/env sh
main()
{
cd -- "$HOME/.password-store" || exit 1
file=$(find ./* -type f | sed 's-^\./--' | sed 's-\.gpg$--' | dmenu)
dmenu_exit=$?
if [ "$dmenu_exit" -ne 0 ]
then
exit 2
fi
pass show "$file" | head -n 1 | perl -pe 'chomp' | xdotool type --file -
notify-send -i "dialog-password" "ipass" "$file"
}
main "$@"
|