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

Extend example for QR code parsind to X11 also #179

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
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
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,20 @@ The same, but appending to an existing passfile:
$ zbarimg -q --raw google-qrcode.png | pass otp append google/[email protected]
```

If you have a clipboard management console tool such as `wl-clipboard` for
Wayland installed, you can also select "Copy Image" in your favorite browser
and run:
You can also select "Copy Image" in your favorite browser or take a
screenshot of the QR code and run:

```
$ wl-paste | zbarimg -q --raw - | pass otp append google/[email protected]
```
* With Wayland:

```
$ wl-paste | zbarimg -q --raw - | pass otp append google/[email protected]
```

* With X11:

```
$ xclip -selection clipboard -o -target image/png | zbarimg -q --raw - | pass otp append google/[email protected]
```

Generate a 2FA code using this token:

Expand Down