Gmane
From: Clemens Fruhwirth <clemens@...>
Subject: [PATCH] key synthesizer
Newsgroups: gmane.comp.window-managers.ion.general
Date: 2005-12-05 12:05:54 GMT (2 years, 30 weeks, 1 day, 21 hours and 26 minutes ago)
A simple key synthesizer using an XSendEvent-ed KeyPress/KeyRelease.

Warning: (u)xterm will ignore key presses generated by XSendEvent, thus
you will not be able to synthesize key presses for such apps. Press
Ctrl+Button1 and hit "Allow SendEvents" to change that for
xterm. Defining the xresource XTerm.*.*.allowSendEvents=true might also
work.

Useful for:
I'm using F2, F3, F4 for ion commands like spawn xterm, run app, or a
lua prompt. I use these function much more often than functions that are
bound by applications to F2, F3, F4.. But I need to access these
function occasionally. Therefor, I use Meta-F2 to synthesize a regular
F2 event. This can be done by

    kpress(MOD1.."F2", "WClientWin.synthesize_key(_sub, 'F2')"),

in the binding map for WMPlex.

Diffed against darcs rep date 20051006. 
-- 
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: sp4mtrap@...