Re: FVWM: Function question

2007-09-25 Thread Ryan Daly
On Mon, 2007-09-24 at 20:35 -0700, Gautam Iyer wrote:
 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 ... :)
 

I just got things set up w/ the Win modifier.  Hadn't thought of using
that key, so thanks for the suggestion.




Re: FVWM: Function question

2007-09-24 Thread Thomas Adam
On 24/09/2007, Ryan Daly [EMAIL PROTECTED] wrote:
 All:

 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.

-- Thomas Adam



Re: FVWM: Function question

2007-09-24 Thread Dan Espen
Thomas Adam [EMAIL PROTECTED] writes:
 On 24/09/2007, Ryan Daly [EMAIL PROTECTED] wrote:
  All:
 
  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.

-- 
Dan Espen   E-mail: [EMAIL PROTECTED]



Re: FVWM: Function question

2007-09-24 Thread Gautam Iyer
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.