> Greetings, > > is there a way in Fvwm to bind some command to just pressing and > immediately releasing the Ctrl-key without pressing any other key? > > Holding down Ctrl any pressing A should NOT trigger this command.
On Linux, you can use the 'xcape' program to put together something to do this. xcape allows you to convert tapping and releasing one key into pressing another, including modifier keys; you can then use this to make xcape generate an unusual key+modifiers combination and bind that in fvwm to some action. For example, binding CapsLock to run a command. * Tell xcape to turn tapping the CapsLock key into F5 with multiple modifiers set: xcape -t 200 -e '#66=Control_L|Shift_L|Alt_L|F5' * tell fvwm to use this key combination to run a program: Key F5 A CSM Exec dt dmenu-front (You could make it any fvwm action, of course, including a function.) xcape is: https://github.com/alols/xcape - cks