LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 08-25-2013, 11:17 AM   #1
josvanr
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
Distinguish keystrokes from wireless and wired keyboard from script


hello

I want to use my wireless keyboard as a kind of remote control to invoke several scripts. But I'd prefer to keep using my wired keyboard in a regular way. Is there some way I can see from a script if a key stroke is coming from the wireless keyboard?

What I'd like to do is have a script listen if keystrokes are coming from the wireless and then start a program like keylaunch, as soon as the strokes are coming to map the keys to other scripts

then when keystrokes are coming from the wired keyboard, keylaunch has to be stopped.... or something..

jos
 
Old 08-26-2013, 01:48 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,001

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
you can assign different handlers (drivers) to different ports and keyboards, but it should be made as root and on kernel level. The script (or any app) itself has no real way to find out the source of the (keystroke) event.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script awk for wireless-wired toplogy with ns2 ines8989 Linux - Networking 3 05-15-2013 11:59 AM
i am trying to run wireless2.tcl script used for wired cum wireless network pooja lohia Linux - Wireless Networking 0 06-15-2012 03:36 AM
Network Manager issue : Does not distinguish between wired and wireless network rohanak Linux - Laptop and Netbook 1 09-04-2008 04:49 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
Keyboard lags for 2-4 keystrokes?! gundelgauk Linux - Hardware 1 05-04-2004 11:53 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration