better query for key
This commit is contained in:
parent
f93881ca25
commit
a4ec59a8fd
@ -6,7 +6,8 @@ key="$(cd ~/.password-store; find * -name '*.gpg' -exec basename \{\} \; | sed '
|
|||||||
|
|
||||||
[ -z "$key" ] && exit
|
[ -z "$key" ] && exit
|
||||||
|
|
||||||
key="$(cd ~/.password-store; find * -name '*'"$key"'*' | sed 's/\.gpg$//')"
|
key="$(cd ~/.password-store; find * -name "$key"'.*' | sed 's/\.gpg$//')"
|
||||||
|
|
||||||
xdotool type --clearmodifiers --window "$window" "$(pass show "$key" | head -1)"
|
xdotool type --clearmodifiers --window "$window" "$(pass show "$key" | head -1)"
|
||||||
xdotool windowfocus "$window"
|
xdotool windowfocus "$window"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user