11-10-2004, 07:04 AM | #2 (permalink) |
Professional Loafer
Location: texas
|
You can use the
IgnoreModifiers command to turn individual modifiers off for bindings. With XFree86 and fvwm version 2.4.0 or above, the right command is IgnoreModifiers L25 If you changed your modifiers manually or are using a different X server use the 'xmodmap' command to find out which modifiers correspond to the keys you want to switch off. This command creates a lot of extra network traffic, depending on your CPU, network connection, the number of Key, Mouse or PointerKey commands in your configuration file and the number of modifiers you want to ignore. If you do not have a lightning fast machine or very few bindings you should not ignore more than two modifiers. So do not ignore scroll-lock if you have no problem with it. A better way to solve this problem is to modify the keyboard mapping of your X server. The commands xmodmap -e "clear Lock" xmodmap -e "clear Mod2" xmodmap -e "clear Mod5" remove the CapsLock, NumLock and ScrollLock from the keyboard map. Pressing these keys has no effect then. To re-add them try this: xmodmap -e "add Lock = Caps_Lock" xmodmap -e "add Mod2 = Num_Lock" xmodmap -e "add Mod5 = Scroll_Lock" Fvwm has to be restarted to use the changes made by xmodmap. Please refer to the man page of the xmodmap command for further details. If you disable the CapsLock key in your keyboard map in this way, you can speed up fvwm a bit by removing the Lock modifier from the list of ignored modifiers: IgnoreModifiers Since we all occasionally press NumLock or ScrollLock, it makes sense to redefine some main bindings to work with any modifiers. I.e. consider to replace something like this in your configuration: Mouse 1 R N Menu MenuFvwmRoot with this: Mouse 1 R A Menu MenuFvwmRoot ---------------------------------------------- might also try this: Key Tab A M WindowList CurrentAtEnd IconifiedAtEnd
__________________
"You hear the one about the fella who died, went to the pearly gates? St. Peter let him in. Sees a guy in a suit making a closing argument. Says, "Who's that?" St. Peter says, "Oh, that's God. Thinks he's Denny Crane." |
Tags |
bindings, fvwm, key |
|
|