Auto-typing the password, instead of copying it to the clipboard, is more secure, since any process can read the contents of the clipboard. It is also significantly more convenient, avoiding the paste step, and works in situations where pasting isn't possible (such as into a VM console).
10 lines
147 B
Bash
Executable File
10 lines
147 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
key="$(bwpass | dmenu)"
|
|
[ -n "${key}" ] || exit 0
|
|
bwpass show "${key}" | tr -d '\n' | xdotool type --file -
|
|
xdotool key Return
|