On Mon, Sep 24, 2007 at 05:54:26PM -0400, Dan Espen wrote:
> > > Is there an easy way to have a command and/or a function to accept a key
> > > press as an input?
> > >
> > > What I'd like to do is define a key binding that would allow me to
> > > MoveToDesk a window. The desk number would be provided by the key I
> > > press (meaning 0,1,2,3, etc.).
> > >
> > > Is there any way to do this?
> >
> > Not easily. You're better off writing out the explicit cases.
>
> Or having the first keypress raise a menu then the second keypress
> select a hot key in the menu. Menus are plenty fast enough that
> they can go by almost faster than you can see them.
That won't work if the first key is a modifier... :(
GI
PS: I use 9 desktops and Win+digit / Win+Shift+digit to switch / move
windows between them. I had to explicitly write a binding for each
operation. Vim makes such things easy ... :)
--
TWELVE REASONS WHY GOD NEVER RECEIVED TENURE
9. Some say he had his son teach the class.