aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2020-08-31 16:56:23 +0200
committerTad Fisher <129148+tadfisher@users.noreply.github.com>2020-09-12 12:51:19 -0700
commit7be39f286757dc8630f681f3696b778f4a3ec301 (patch)
tree13addf50618b78cc3c054d98d5abf6f0dad1305b
parente57acb084ee728ef9d88a3d9b63a7b34ac6faea8 (diff)
downloadpass-otp-7be39f286757dc8630f681f3696b778f4a3ec301.tar.gz
pass-otp-7be39f286757dc8630f681f3696b778f4a3ec301.zip
README: Also describe how to use zbarcam
I find this one of the most common use cases.
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4832af9..2d28491 100644
--- a/README.md
+++ b/README.md
@@ -61,12 +61,18 @@ Pipe an `otpauth://` URI into a passfile:
$ pass otp insert totp-secret < totp-secret.txt
```
-Use [zbar](http://zbar.sourceforge.net/) to decode a QR image into a passfile:
+Use [zbar](http://zbar.sourceforge.net/) to decode a QR image or webcam shot into a passfile:
```
$ zbarimg -q --raw qrcode.png | pass otp insert totp-secret
```
+To use your webcam:
+
+```
+$ zbarcam -q --raw | pass otp insert totp-secret
+```
+
The same, but appending to an existing passfile:
```