Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Copy password to clipboard on flag #27

Closed
TheOneValen opened this issue Nov 15, 2020 · 5 comments
Closed

Feature Request: Copy password to clipboard on flag #27

TheOneValen opened this issue Nov 15, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@TheOneValen
Copy link

e.g.

rbw get entry -c

Copies the password of 'entry' to the clipboard.

Greetings!

@hoshsadiq
Copy link

You can use xclip or the like; rbw get entry | xclip -sel clip

@jedahan
Copy link

jedahan commented Nov 23, 2020

on wayland rbw get entry | wl-copy --paste-once (paste-once for a little more safety)

@lukalot
Copy link

lukalot commented Dec 12, 2020

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.

@doy doy added the enhancement New feature or request label Feb 19, 2021
@as3ii
Copy link

as3ii commented Mar 4, 2021

(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

@doy
Copy link
Owner

doy commented Jul 18, 2023

fixed in #120

@doy doy closed this as completed Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants