From 7be39f286757dc8630f681f3696b778f4a3ec301 Mon Sep 17 00:00:00 2001 From: Niklas Hambüchen Date: Mon, 31 Aug 2020 16:56:23 +0200 Subject: README: Also describe how to use zbarcam I find this one of the most common use cases. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'README.md') 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: ``` -- cgit v1.2.3