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
WSMUX(4)						   BSD Kernel Interfaces Manual 						  WSMUX(4)

NAME
wsmux -- console keyboard/mouse multiplexor for wscons SYNOPSIS
wskbd* at ... mux 1 wsmouse* at ... mux 0 pseudo-device wsmux DESCRIPTION
The wsmux is a pseudo-device driver that allows several wscons(4) input devices to have their events multiplexed into one stream. The typical usage for this device is to have two multiplexors, one for mouse events and one for keyboard events. All wsmouse(4) devices should direct their events to the mouse mux (normally 0) and all keyboard devices, except the console, should direct their events to the key- board mux (normally 1). A device will send its events to the mux indicated by the mux locator. If none is given the device will not use a multiplexor. The keyboard multiplexor should be connected to the display, using the wsconscfg(8) command. It will then receive all key- strokes from all keyboards and, furthermore, keyboards can be dynamically attached and detached without further user interaction. In a simi- lar way, the window system will open the mouse multiplexor and receive all mouse events; mice can also be dynamically attached and detached. If a wskbd(4) or wsmouse(4) device is opened despite having a mux it will be detached from the mux. It is also possible to inject events into a multiplexor from a user program. FILES
For each mux device, /dev/wsmuxN there is a control device /dev/wsmuxctlN. The control device has a minor number 128 greater than the regu- lar mux device. It can be used to control the mux even when it is open, e.g., by wsmuxctl(8). /dev/wsmouse a.k.a. /dev/wsmux0 /dev/wskbd a.k.a. /dev/wsmux1 /usr/include/dev/wscons/wsconsio.h SEE ALSO
wscons(4), wsdisplay(4), wskbd(4), wsmouse(4), moused(8), wsconscfg(8), wsconsctl(8), wsfontload(8), wsmoused(8), wsmuxctl(8) BSD
July 26, 1999 BSD
All times are GMT -4. The time now is 02:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy