dotfiles/bin/passuser

9 lines
212 B
Bash
Executable File

#!/bin/bash -e
txt="$(pass "$(cat /tmp/passselect)" | sed -n '/^Username:/{s/Username:\s*//p;q}')"
bak="$(xclip -o -sel c)"
xclip -sel c <<< "$txt"
xdotool key --clearmodifiers 'ctrl+v'
xclip -sel c <<< "$txt"