title: Linux, reading from barcode scanner
body: <p>I have barcode scanner, attached to Linux computer via USB. The scanner emulates a keyboard device.</p>
  
  <p>I have to write a program that to read the scanned barcodes and process them. The program runs on background as a service and should read the barcode scanner regardless of the current X focus. </p>
  
  <p><strong>How this can be made in Linux?</strong></p>
  
  <p>Some lower level solution/explanation is preferred.</p>