fix: bin/pass* use clipboard instead of type

This commit is contained in:
ange 2024-03-06 16:54:18 +01:00
parent ec5a258e15
commit 346a498e7d
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
15 changed files with 38 additions and 35 deletions

View file

@ -1,3 +1,8 @@
#!/bin/bash -e
xdotool type --clearmodifiers --delay 0 "$(pass "$(cat /tmp/passselect)" | head -n1 -)"
txt="$(pass "$(cat /tmp/passselect)" | head -n1 -)"
bak="$(xclip -o -sel c)"
xclip -sel c <<< "$txt"
xdotool key --clearmodifiers 'ctrl+v'
xclip -sel c <<< "$txt"