12 lines
274 B
Bash
Executable File
12 lines
274 B
Bash
Executable File
#!/bin/bash
|
|
|
|
window="$(xdotool getwindowfocus)"
|
|
|
|
key="$(cd ~/.password-store; find * -name '*.gpg' | sed 's/\.gpg$//' | sort -d | dmenu)"
|
|
|
|
[ -z "$key" ] && exit
|
|
|
|
xdotool type --clearmodifiers --window "$window" "$(pass show "$key" | head -1)"
|
|
xdotool windowfocus "$window"
|
|
|