Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Clemens Fruhwirth <clemens-Yy/aLhJqNSaEi8DpZVb4nw <at> public.gmane.org>
Subject: [PATCH] key synthesizer
Newsgroups: gmane.comp.window-managers.ion.general
Date: Monday 5th December 2005 12:05:54 UTC (over 10 years 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: [email protected]
 
CD: 3ms