The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
341 views

“Merging” two input device drivers/nodes to one device node

Okay, I have two joysticks attached to my linux box and they show up as /dev/js0 and /dev/js1. My problem is, I have a third party application, (that I cannot change), that uses a joystick, and it can ...
1
vote
2answers
631 views

Import sql files using xargs

I have a number of sql files to import. For a single file I use the following command: mysql -u root -p dbname < db.sql Is it possible to use xargs to bulk import all files? something like: ls ...
52
votes
2answers
2k views

Clear / erase a mistyped invisible password on a shell / terminal in Linux

One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few ...
15
votes
2answers
2k views

bash script to detect and record mouse movements?

I need to be able to record the mouse movements every so often (every .2 of a second for example) and have them in a coordinate representation instead of a diff. I found the following script: ...
3
votes
0answers
274 views

How to know the event by looking at /dev/input/by-id

I want to access the keyboard device driver. I usually accesses it by looking at /dev/input/by-name but the event provided by it gets changed every time I log in. After searchin on the Net, I found ...
6
votes
2answers
776 views

Share keyboard over network as separate device?

I am trying to achieve something similar to this: http://superuser.com/questions/67659/linux-share-keyboard-over-network The difference is that I need the remote keyboard to be usable separate from ...
7
votes
1answer
659 views

Bash script doesn't read input

I have a script that is suppose to run a command in the background, and it does that. The problem is that when the script comes upon a read command, it doesn't pause and accept input. Here it is: ...
17
votes
2answers
14k views

Earphone remote in sound jack as X input

I have got new earphones, the AKG K318's to be exact and they have one of those remotes. On a smartphone, such as an Android phone or iPhone, the buttons map to actions on the music player such as ...
3
votes
1answer
912 views

send keystroke to process

I'd like to run some applications in fullscreen. Even though they don't have an explicit such option, it is possible with the metacity Alt-F11 command. So, I thought I could create such an input like ...
0
votes
2answers
5k views

Shell script how to read input from a file [closed]

I need to read input from a file given in following format. $ ./process_data.sh arg1 < input_data.txt How do I read input_data in my shell script process_data.sh?
4
votes
4answers
566 views

Get input from editor (vim/nano/emacs/textmate?)

I was just curious if there's a way to get input not from StdIn but from $EDITOR - be it vim, nano, emacs or even a non-command-line-editor (MacVim/TextMate). What are the ...
5
votes
2answers
323 views

how to deal with keyboard-greedy apps

I'm having a very specific problem, however any help will aid in understanding X's relationship to the keyboard. I'd like to be able to launch the ElectricSheep program on top of music playing from ...
2
votes
1answer
1k views

Sending some input into a process, then resuming input from command line

I have an interactive terminal program, that accepts stdin (telnet for example). I want to send it some input before interacting with it, like this: echo "Hello" | telnet somewhere 123 But that ...
1
vote
2answers
5k views

How to directly read keyboard input in real-time?

I am not certain if this is ultimately the correct place to ask this but I am developing a program which requires real-time input from the user. That is; it needs to be able to read the keys being ...
4
votes
1answer
476 views

How can I make C-m1 emulate a right click?

On Mac OS X, you can right click by holding down control and clicking. I swapped the command and control keys with setxkbmap -option altwin:ctrl_win, but how do I make it right click by holding down ...
11
votes
2answers
8k views

How do mouse events work in linux?

This is mostly out of curiosity, I'm trying to understand how event handling works on a low level, so please don't reference me to a software that'll do it for me. If for example I want to write a ...
4
votes
1answer
621 views

Fetching user input while running in the background

I am writing a script that prompts the user for input and does some processing afterwards. I was using read to get the data, but then I noticed that when the script is ran with a keyboard shortcut (I ...
2
votes
1answer
83 views

Directing Xorg input to selected application

I'm trying to play Frets on Fire using my PS3 Guitar Hero III controller. It works right away, but it's also controlling the cursor as if it's a mouse. I'd like to play the game windowed, but that's ...
4
votes
2answers
1k views

Multitouch support on KDE

On Ubuntu there is an app called ginn which forces non-multitouch aware apps to support multitouch. (source) Is there any analogue for the KDE Desktop Environment?
6
votes
1answer
1k views

Dual head configuration with two touchscreens in Linux

As a part of my current project I need to set up a Linux-based workstation with two monitors, both of which are multitouch-enabled (ViewSonic VX2258wm, Quanta touch panel). So, naturally, I set up a ...
7
votes
1answer
666 views

barcode scanner input when running xorg and evdev

When I scan a barcode in a text console (CTRL+ALT+F1 or not running X) I get the correct input, but when I try with an application running on X, I don't get the correct barcode. The scanner is ...
2
votes
1answer
485 views

Apple Magic Trackpad resets settings after session

I was able to get the Apple Magic Trackpad working on Fedora 15 KDE 4.6. (I previously got it working on Linux Mint.) However, the settings -- particularly activating the single-finger left click and ...
17
votes
8answers
6k views

Disable Keyboard & Mouse input on unix (under X)

How can one programmatically "freeze" the Keyboard & Mouse temporarily, so that no one could mess with the system? There are several possibilities where this is useful. For instance, I have a ...
2
votes
2answers
121 views

SED misbehaving with input file

Simply put I have a small sed command that is supposed to trim " and wrap the input between the <id> tag. It goes well single line and multiple line input, but badly misbehaves on an input file ...
1
vote
0answers
279 views

Settings value in /sys/devices/platform/i8042/serio1/serio2/speed as no effect

I'm following this tutorial to ajust the TrackPoint speed for my Lenovo T420. However, setting a value in /sys/devices/platform/i8042/serio1/serio2/speed has no effect. The trackpoint is unaffected ...
10
votes
4answers
14k views

How to inject keystrokes via a shell script?

I'm trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen?
3
votes
2answers
4k views

How to catch optioned and non optioned arguments correctly?

I want to write a shell script which will take some arguments with some options and print that arguments. Suppose the name of that script is abc.ksh. Usage of that script is - ./abc.ksh -[a ...
8
votes
2answers
9k views

How to debug the input from an input-device (/dev/input/event*)

I have a IR reciver that is using the imon-driver and i would like to get it working with the kernel. Right now half of the keys on the remote (image) works, but an all important think like the ...
5
votes
2answers
549 views

Easy/simple input method package that works with minimal window manager?

I am trying out minimalist window managers such as, but not limited to, Xmonad, ScrotWM, ratpoison, etc. Since I occasionally need to enter Traditional Chinese characters, how do I install an input ...
5
votes
2answers
735 views

External tablet input devices for Linux (Inkscape/Gimp)?

What are good external tablet input devices for Linux? It should be used for more convenient use of Inkscape and Gimp. Some characteristics that are useful, I guess: connected via USB included pen ...