Discussion:
[Fluxbox-users] Concerning fluxbox keybindings
lego space
2010-03-25 20:39:43 UTC
Permalink
I have a question:

If I put the following line to the ~/.fluxbox/keys file,

Mod4 f :Exec firefox

when I press "Mod4"+"f", firefox is executed. But I have to press the two
keys ("Mod4" and "f") at the same time.
Is there any way to execute firefox by pressing "Mod4", and then "f"
(without pressing them at the sam time)?

Any help would be appreciated.
Andrej
2010-03-25 20:55:40 UTC
Permalink
Post by lego space
If I put the following line to the ~/.fluxbox/keys file,
Mod4 f :Exec firefox
when I press "Mod4"+"f", firefox is executed. But I have to press the two
keys ("Mod4" and "f") at the same time.
Is there any way to execute firefox by pressing "Mod4", and then "f"
(without pressing them at the sam time)?
What you are trying to achieve sounds a bit like "chaining" in
man fluxbox-keys

But I'm afraid that only works with sequences of modifier-key pairs,
not with press modifier, then key
Post by lego space
Any help would be appreciated.
Cheers,
Andrej
--
Please don't top post, and don't use HTML e-Mail :} Make your quotes concise.

http://www.american.edu/econ/notes/htmlmail.htm
Todd Harbour
2010-03-25 22:39:56 UTC
Permalink
On Fri, 26 Mar 2010 09:55:40 +1300
Post by Andrej
Post by lego space
If I put the following line to the ~/.fluxbox/keys file,
Mod4 f :Exec firefox
when I press "Mod4"+"f", firefox is executed. But I have to press
the two keys ("Mod4" and "f") at the same time.
Is there any way to execute firefox by pressing "Mod4", and then "f"
(without pressing them at the sam time)?
What you are trying to achieve sounds a bit like "chaining" in
man fluxbox-keys
But I'm afraid that only works with sequences of modifier-key pairs,
not with press modifier, then key
I just tested a few different things and it does work using the "None"
modifier:
None F1 None F2 :ExecCommand xcalc

Additionally, using the key, not the modifier seems to work too
although it appears to loose it's mod powers when you do:
None Super_L None F1 :ExecCommand xcalc

Though that might have just been with my config, YMMV.

Regards,
--
Todd Harbour
Andrej
2010-03-25 22:56:03 UTC
Permalink
Post by Todd Harbour
Post by Andrej
But I'm afraid that only works with sequences of modifier-key pairs,
not with press modifier, then key
I just tested a few different things and it does work using the "None"
 None F1 None F2 :ExecCommand xcalc
Additionally, using the key, not the modifier seems to work too
 None Super_L None F1 :ExecCommand xcalc
Though that might have just been with my config, YMMV.
Interesting - hadn't thought of that option.

I just tried
None Mod1 None f :ExecCommand xclock

and it doesn't seem to work for me if there's a "break" of more than a
few hundredth of a second (in other words, a Mod1+f gives me xclock
in a repeatable manner, a 1/2 second break between Mod1 and f doesn't).

Wonder whether the time-span is a configurable setting - can't see anything
related to it in man fluxbox or man fluxbox-keys ;}


Cheers,
Andrej
lego space
2010-03-25 23:20:18 UTC
Permalink
In fact I already tried the option of
None Mod4 None f :Exec firefox
but it didn't work, so I posted here.
Any other suggestions?
Post by Andrej
Post by Todd Harbour
Post by Andrej
But I'm afraid that only works with sequences of modifier-key pairs,
not with press modifier, then key
I just tested a few different things and it does work using the "None"
None F1 None F2 :ExecCommand xcalc
Additionally, using the key, not the modifier seems to work too
None Super_L None F1 :ExecCommand xcalc
Though that might have just been with my config, YMMV.
Interesting - hadn't thought of that option.
I just tried
None Mod1 None f :ExecCommand xclock
and it doesn't seem to work for me if there's a "break" of more than a
few hundredth of a second (in other words, a Mod1+f gives me xclock
in a repeatable manner, a 1/2 second break between Mod1 and f doesn't).
Wonder whether the time-span is a configurable setting - can't see anything
related to it in man fluxbox or man fluxbox-keys ;}
Cheers,
Andrej
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Loading...