Closed TheOneValen closed 1 year ago
You can use xclip or the like; rbw get entry | xclip -sel clip
on wayland rbw get entry | wl-copy --paste-once
(paste-once for a little more safety)
I wrote this Fish shell script to make copying passwords from rbw even easier, though I'm not sure you use Fish: https://gist.github.com/Lukalot/9493492624b6d31c8d2169f216a5d74e
It could probably be converted to Bash without too much effort.
(if clipmenu
is not installed, the two lines that disable and enable clipctl
can be removed)
clipctl disable # disable clipboard history
rbw get "$entry" | xsel -ibn &
xsel_pid=$!
clipctl enable # re-emable clipboard history
# kill xsel after 30 seconds
sleep 30
timeout -k 3 2 kill -15 "$xsel_pid" || kill -9 "$xsel_pid"
^ taken from a script i wrote which uses dmenu to choose the entry
fixed in #120
e.g.
rbw get entry -c
Copies the password of 'entry' to the clipboard.
Greetings!