Compare commits
No commits in common. "9cf514009a1912f277bd22fb184393f20e1c988d" and "ff8414a888e4aacd252f72f4ee3a9e9833ae7e0e" have entirely different histories.
9cf514009a
...
ff8414a888
|
@ -5,5 +5,8 @@ set -e
|
|||
|
||||
key="$(bwpass | dmenu)"
|
||||
[ -n "${key}" ] || exit 0
|
||||
bwpass show "${key}" | tr -d '\n' | xdotool type --file -
|
||||
xdotool key Return
|
||||
password="$(bwpass show "${key}")"
|
||||
[ -n "${password}" ] || exit 1
|
||||
printf '%s' "${password}" | xclip -quiet -rmlastnl -sel clip 2> /dev/null &
|
||||
sleep 12
|
||||
kill $!
|
||||
|
|
|
@ -65,9 +65,8 @@ class Pinentry:
|
|||
|
||||
def getpin(self):
|
||||
codec = locale.getpreferredencoding()
|
||||
tty = os.ttyname(sys.stdin.fileno())
|
||||
p = subprocess.Popen(
|
||||
['pinentry', '-T', tty],
|
||||
['pinentry'],
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
)
|
||||
|
|
Reference in New Issue