Top‎ > ‎Unix & Linux trinkets‎ > ‎Little utilities‎ > ‎

xkeyin: send X11 keyboard events to an X window

This little X11 application lets you send fake keyboard presses to arbitrary windows.

I wrote this a long time ago.  Today I recommend xdotool instead.


$ xkeyin -w 0x2e0000e -t "exit^m"

This sends keyboard events to window 0x2e0000e just like you'd type exitENTER.

Without the -w parameter the current window is selected.

Use ^^ to send a single caret, use ^m to send ENTER, ^t for TAB.
Danny Chouinard,
Sep 11, 2010, 9:32 AM