Skip to main content

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
code:
#!/bin/bash zbarimg -q --raw "$1" |xclip -selection c
you need 2 small packages qr decode , clipboard,
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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support