Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
Share keyboard over network as separate device?

Sort of like a poor man's keyboard sharing. I've tried using Synergy and x2x but couldn't get them to work, so I decided to simplify things and use xdotool to generate the events.

Is there any way to get the keysyms (such as Control_L, F4, Shift_R) of keystrokes so they can be passed on to xdotool?

I've looked at xev but it generates so much information and I have no idea how to extract the info I need (which key was pressed, whether it is being held down, etc.) more or less in real time.

share|improve this question
    
What do you want to do? ssh to two computers, type once and get the result on both computers? –  Nils Sep 1 '12 at 20:05
    
More like controlling one computer with the other's keyboard. I tried Synergy, but couldn't get it to work. –  Splooshie123 Sep 2 '12 at 1:25
add comment

marked as duplicate by Ulrich Dangel, Renan, jasonwryan, Mat, Kevin Sep 24 '12 at 1:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

I'm not sure I understand your question, but

xinput test <id>

Prints the events generated by input device <id> (see xinput list to figure out ids)

xev | sed -n '/^KeyPress/{n;n;s/.*, \(.*\)).*/\1/p;}'

will return the keysym pressed in the xev window.

xmodmap -pk

will print mappings between keycodes and keysyms.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.