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

added :clip command #117

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ in a convenient way using [rofi](https://github.com/DaveDavenport/rofi).
respectively.
`:otp` will generate an OTP, either `pass-otp(1)` style, or according to the
`otp_method:`, if it is defined.
`:clip` puts every field after it into the clipboard.
* Generating OTPs.
The format for OTPs should either be `pass-otp(1)`-compatible
```
Expand All @@ -60,6 +59,17 @@ in a convenient way using [rofi](https://github.com/DaveDavenport/rofi).
* The field names for `user`, `url` and `autotype` are configurable
* Bookmarks mode (open stored URLs in browser, default: Alt+x)
* Share common used passwords between several entries (with different URLs, usernames etc)
* Each field after `:clip` gets copied into the clipbard.

```
hunter2
user: foo
url: http://example.com
oauth://[...]
autotype: user pass :clip :otp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be user :tab pass :clip :otp?

```

The otp token will now be copied into the clipboard after auto-typing.

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ checkIfPass () {

autopass () {
x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}')
inclip='false'
clipcontent=""
local inclip='false'
local clipcontent=""
xset r off

rm -f "$HOME/.cache/rofi-pass/last_used"
Expand Down