diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-02-05 22:55:11 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-02-05 22:55:11 +0100 |
commit | 5068115639f500bb36ae3f7e72c9a774623d080c (patch) | |
tree | dedd0a7e7e40a1a8df4481c96c9f91c04945a746 /contrib/dmenu | |
parent | 46780a1c76886ff4af4176ea3534c216f0828d04 (diff) |
passmenu: Use faster built-in
Diffstat (limited to 'contrib/dmenu')
-rwxr-xr-x | contrib/dmenu/passmenu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu index c89d9b9..a665c41 100755 --- a/contrib/dmenu/passmenu +++ b/contrib/dmenu/passmenu @@ -20,6 +20,6 @@ password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") if [[ $typeit -eq 0 ]]; then pass show -c "$password" 2>/dev/null else - pass show "$password" | head -n 1 | tr -d '\n\r' | + pass show "$password" | read pass; printf %s "$pass" | xdotool type --clearmodifiers --file - fi |