[dpass] Change from ydotool to dotool; add support for OpenTTD.pro !login command
This commit is contained in:
parent
d6de6a541e
commit
79d96c08b5
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ set -euo pipefail
|
|||
cd ~/.password-store
|
||||
passname=$(find -name "*.gpg" | sed -r 's|\./(.*)\.gpg$|\1|' | rofi -dmenu -p pass)
|
||||
case "$passname" in
|
||||
openttdpro-otp) password="!login $(pass otp "$passname")"; ;;
|
||||
*-otp) password="$(pass otp "$passname")"; ;;
|
||||
*) password="$(pass show "$passname" | sed '/^$/q')"; ;;
|
||||
esac
|
||||
ydotool type "$password"
|
||||
printf '%s\n' "type $password" | dotoolc
|
||||
|
|
Loading…
Reference in a new issue