transfer_url_or_text_to_cellphone_throug_qrcode

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


transfer_url_or_text_to_cellphone_throug_qrcode [06.08.2015 14:30] (current) – created Pascal Suter
Line 1: Line 1:
 +====== ubuntu: transfer url or text to cellphone throug qrcode ======
 +let's say you find something while browsing on your computer and you want to download that file or enter that text into your cellphone but the link is way to long to type it on that tiny onscreen keyboard.. here's an easy way to do that. with this solution, you will simply mark the url you want to copy to your phone and hit ctrl+alt+q and then scan the qrcode on your phone: 
  
 +first make sure you have all the necessary tools installed.. 
 +  sudo apt-get install xdotool qrencode xclip imagemagick
 +
 +now create a script called "genqrcode.sh" in your home folder with these contents: 
 +<code>
 +#!/bin/bash
 +xdotool key "ctrl+c"
 +qrencode -o - "`xclip -o`" | display
 +</code>
 +make it executable 
 +  chmod +x genqrcode.sh
 +now go to your system settings -> keyboard and there in the hotkeys tab add a new hotkey for gencode.sh .. i chose ctrl+alt+q 
 +
 +now you can highlight any url (or any text for that matter) and hit ctr+alt+q and a qrcode will show up which you can then scan from your phone to transfer the highlighted text to your phone.. 
  • transfer_url_or_text_to_cellphone_throug_qrcode.txt
  • Last modified: 06.08.2015 14:30
  • by Pascal Suter