Sponsored Content
Top Forums Shell Programming and Scripting Monitor keypresses without focus? Post 302991103 by wisecracker on Monday 6th of February 2017 04:42:09 PM
Old 02-06-2017
To add to Corona688's reply...

I don't know the particulars for Fedora but Ubuntu's events sit in /dev/input/ as event6 in my case.

It will produce a BINARY _string_ that you will have to decode to get the required character(s).

This is a simple command that will monitor, (using MY /dev/input/event6 ):-
Code:
sudo cat /dev/input/event6

Note the "sudo" because you might need elevated access to read the device.

EDIT:
You could try xinput list keyboard it might just work...

Last edited by wisecracker; 02-06-2017 at 05:46 PM.. Reason: See above...
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Gnome focus

Hello all, Is there a way to make sawfish window manager focus on a gui when you click it but not make it raise to the top? I know that motif and CDE (soalris) allow you to focus with out raising the windows. THANKS (2 Replies)
Discussion started by: larry
2 Replies

2. Shell Programming and Scripting

how to send a key to a windows without focus

Hi, i found xte and xdotool for sending some keys to windowed applications but they need to have the focus on it. Can someone say me if i can do the same but wihtout focusing the window i want to type something ? edit: xreplay (0 Replies)
Discussion started by: linked
0 Replies

3. Programming

Focus on already running process by giving ID or name?

Is this possible to be done with C++ ? I am working on Qt Creator by I didn't find any working setFocus function or something. Can you help me a bit? Thank you. The program actually checks if there is a process of this program already running and if there is it exits. I want to make it focus on... (2 Replies)
Discussion started by: hakermania
2 Replies

4. UNIX for Dummies Questions & Answers

Starting a program without it stealing focus

Hi all I have a java program I'm starting in Mac os from the terminal using the command java -Djava.library.path=/Users/me/Desktop/Cfiles/DynamicCTGLayout/build/Release -jar However, when I do this, my current program I'm using becomes "deselected" and the java program's GUI becomes... (2 Replies)
Discussion started by: WhiteTiger
2 Replies

5. UNIX for Dummies Questions & Answers

Display command stealing focus

Please Help a Newbie, I'm using the display command to post a picture of several configurations for a machine operator to choose from. The Issue I have is when I display the image the displayed image steals focus from my bash window. The operator then has to re-select the window to answer the... (1 Reply)
Discussion started by: BitBoy
1 Replies

6. What is on Your Mind?

Learning System Administration: What to focus on?

In the fall I am taking courses in System Admin and Networking Admin, along with Cisco classes. Sometime next year I hope to get Red Hat and CCNA certifications, then try to get some experience and a job. I am wondering what I can focus on in the meantime (and in my spare time) that will... (1 Reply)
Discussion started by: ScottLew
1 Replies

7. Infrastructure Monitoring

Searching for Saas Monitor service which monitor my servers which are sitting in different providers

Sorry if this is the wrong forum Searching for Saas Monitor service which monitor my servers which are sitting in different providers . This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard. The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies
INPUTLIRCD(8)						    BSD System Manager's Manual 					     INPUTLIRCD(8)

NAME
inputlircd -- zeroconf LIRC daemon using input event devices SYNOPSIS
inputlircd [-d socket] [-f] [-c] [-r repeat-rate] [-m keycode] [-n device name] [-u username] device [device ...] DESCRIPTION
inputlircd is a small LIRC daemon that reads from /dev/input/eventX devices and sends the received keycodes to connecting LIRC clients. inputlircd needs no configuration, it uses the standardised names for the keycodes as used by the kernel. Many USB remote controls that present HID devices, as well as multimedia keyboards should work out of the box. inputlircd expects a list of input event devices as commandline parameters. It will only read events from those devices. OPTIONS
-d socket Location of the UNIX socket to which LIRC clients can connect. The default is /var/run/lirc/lircd. -f Run in the foreground. -c Capture modifier keys. This causes the CTRL, SHIFT, ALT and META keys to be treated as modifer keys that, when used in combination with another keys, change the LIRC event from that key rather than being sent as their own LIRC events. -r repeat-rate Set the repeat rate (in milliseconds) of the remote control. The default is 0. Repeated keys that arrive less than repeat-rate mil- liseconds apart will be flagged as as repeat LIRC events. -g Grab the input device(s). This gives inputlircd exclusive access to the input devices and stops events from propagating any further. -m keycode Minimum keycode to send to LIRC clients. Keycodes lower than this number are filtered out. The default is 88, this filters out the alphanumeric section and the keypad section of normal keyboards, but allows all extended keys. The rationale is that clients should not be able to grab normal keypresses, this could be a security risk. -n device name Name of an input device to read events from. This scans all available input event devices, and if the symbolic name of an event device matches device name, adds it to the list of devices to read from. The device name can contain wildcard patterns, see glob(7). To get a list of available devices and their names, cat /proc/bus/input/devices or use lsinput(8). -u username Set user and group id to that of username after opening the devices and UNIX socket as root. The default is nobody. -t path Provides the path to a file containing a mapping between input event key names and the commands which should be reported via lirc. The files should contain lines of the form KEY_FOO = bar. This is useful for backward compatibility. The default is not to use a transla- tion table. device One or more input event devices. If you want to use inputlircd to process multimedia keys on the keyboard, then /dev/input/event0 is the most likely choice. If you have other input devices, such as USB remote controllers that act like a HID device, then you probably need one of the other event devices present. See /proc/bus/input/devices for a list of available input devices. If unsure, you can add all available input event devices. FILES
/var/run/lirc/lircd Default location of the UNIX socket to which LIRC clients can connect. /dev/input/eventX The kernel input layer's event device files. /proc/bus/input/devices List of all input devices. SEE ALSO
irw(1), input-events(8), setkeycodes(8), /usr/include/linux/input.h. June 1, 2019
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy