This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
bwpass/dmenu_bw
Dustin C. Hatch 1c80f5bd73 dmenu_bw: Type password instead of copying it
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).
2019-08-29 19:47:55 -05:00

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