[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] meta command strangeness
From: |
Shawn Betts |
Subject: |
Re: [RP] meta command strangeness |
Date: |
Thu, 17 Aug 2006 21:01:08 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) |
> Any other way to implement keyboard macros with ratpoison? Does anyone else
> see a need for this, or are you just content to remap keys in every
> application you use? What do you do if you don't like the keys in an
> application that doesn't have that feature? Just deal with it is NOT an
> acceptable answer... if I wanted my computer to tell me how I'm going to use
> it I'd still be using Windows.
I think that should read "If you wanted your computer to tell you how
you're going to use it POORLY you'd still be using windows." Around
here we tell you what to do and think too, but the difference is you
like it.
Lately I've become a fan of writing small standalone X programs that
get the job done. There's an X extension called TestFakeKey or
something. It generates key events but clients can't tell they're fake.
This is a commented out line from actions.c. Once upon a time we tried
to use it in ratpoison but it was too hairy.
/* XTestFakeKeyEvent (dpy, XKeysymToKeycode (dpy, 't'), True, 0); */
I'd recommend writing a tiny little program that takes, say, a string
of characters at the command line and generates fake key events with
them. Seems straight forward enough. I'll hack it up at some point if
you don't beat me to it. Seems like it could be useful and
interesting.
-Shawn
- Re: [RP] meta command strangeness,
Shawn Betts <=