Thread: Nautilus Action: QR Code to Clipboard Tutorial
i've created quick , easy way copy qr codes clipboard.
useful pasting url or bitcoin addresses wherever...
create small script , make executable,
nano barclip
chmod +x barclip
paste barclip
you need 2 small packages qr decode , clipboard,code:#!/bin/bash zbarimg -q --raw "$1" |xclip -selection c
sudo apt-get install zbar-tools xclip
if don't have nautilus actions install (very useful),
sudo apt-get install nautilus-actions
gives nice gui tool creating actions embed in menus or mouse right click.
shows on menu system, preferences.
open nautilus actions, create new action.
"context label" put "read qr code clipboard".
on command tab enter path /path/to/barclip script.
parameters enter %f.
on mimetypes tab, remove "*" line , add image types want match, "image/png" , "image/jpeg".
makes item show file types (regardless of filename extension).
click "save" action.
test out. let's see qr code on web.
drag onto desktop, right click , choose "read qr code clipboard".
go text entry field , right click, paste.
should see qr data pasted.
hint, hint.
hope useful someone.
i happy see zbar did qr codes, happy made whole process much, simpler new tool. made little thing hides on dock, when click it, searches screen qr codes, sends them zbar, , overlays outline text telling says... lets copy of codes clipboard.
want me package-ify it?
http://cnlohr.blogspot.com/2011/08/d...or-ubuntu.html
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [gnome] Nautilus Action: QR Code to Clipboard Tutorial
Ubuntu
Comments
Post a Comment