blob: 63ec46a4948763d697a479fd16d3c92b2704aeb2 (
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" | perl -pe 'chomp' | xdotool type --file -
notify-send -i "dialog-password" "ipass" "${file}"
}
main "$@"
|