Discussion:
FVWM: Using modifiers with FakeKeyPress
m***@crosswire.com
2011-09-13 19:11:03 UTC
Permalink
I keep forgetting Rxvts font increase/decrease keysequence. I'd like to
just simulate it from a titlebar menu since I only use it once in a blue
moon.

Something like:

+ I "&PlusFont" Current FakeKeypress press Shift_R press KP_Add

I've tried several combinations, and shift just doesn't seem to want to
occur symultaneously. What am I missing?

Thanks!
Matt
Thomas Adam
2011-09-13 19:53:59 UTC
Permalink
Post by m***@crosswire.com
I keep forgetting Rxvts font increase/decrease keysequence. I'd like to
just simulate it from a titlebar menu since I only use it once in a blue
moon.
+ I "&PlusFont" Current FakeKeypress press Shift_R press KP_Add
I've tried several combinations, and shift just doesn't seem to want to
occur symultaneously. What am I missing?
URxvt might not understand or have an option for recognising synthetic
key events.

-- Thomas Adam
Thomas Adam
2011-09-13 20:06:03 UTC
Permalink
Post by Thomas Adam
Post by m***@crosswire.com
I keep forgetting Rxvts font increase/decrease keysequence. I'd like to
just simulate it from a titlebar menu since I only use it once in a blue
moon.
+ I "&PlusFont" Current FakeKeypress press Shift_R press KP_Add
I've tried several combinations, and shift just doesn't seem to want to
occur symultaneously. What am I missing?
URxvt might not understand or have an option for recognising synthetic
key events.
Oh, and even if it did, it's one key press at a time, so once Shift_L
(see xev(1)) had been sent, by the time the KP_Add key is sent, the
modifier key is thrown away.

-- Thomas Adam
Thomas Adam
2011-09-13 20:13:53 UTC
Permalink
Post by Thomas Adam
Post by Thomas Adam
Post by m***@crosswire.com
I keep forgetting Rxvts font increase/decrease keysequence. I'd like to
just simulate it from a titlebar menu since I only use it once in a blue
moon.
+ I "&PlusFont" Current FakeKeypress press Shift_R press KP_Add
I've tried several combinations, and shift just doesn't seem to want to
occur symultaneously. What am I missing?
URxvt might not understand or have an option for recognising synthetic
key events.
Oh, and even if it did, it's one key press at a time, so once Shift_L
(see xev(1)) had been sent, by the time the KP_Add key is sent, the
modifier key is thrown away.
So, probably (I haven't tested this):

FakeKeyPress modifiers 6 press KP_Add

should work.

-- Thomas Adam
m***@crosswire.com
2011-09-13 23:03:23 UTC
Permalink
-------- Original Message --------
Subject: Re: FVWM: Using modifiers with FakeKeyPress
Date: Tue, September 13, 2011 4:13 pm
Post by Thomas Adam
Post by Thomas Adam
Post by m***@crosswire.com
I keep forgetting Rxvts font increase/decrease keysequence. I'd like to
just simulate it from a titlebar menu since I only use it once in a blue
moon.
+ I "&PlusFont" Current FakeKeypress press Shift_R press KP_Add
I've tried several combinations, and shift just doesn't seem to want to
occur symultaneously. What am I missing?
URxvt might not understand or have an option for recognising synthetic
key events.
Oh, and even if it did, it's one key press at a time, so once Shift_L
(see xev(1)) had been sent, by the time the KP_Add key is sent, the
modifier key is thrown away.
FakeKeyPress modifiers 6 press KP_Add
should work.
-- Thomas Adam
Cool! That worked.

Thanks!
Matt

Loading...