fvwm: lock screen with windows-L
In various OSs, holding a windows button modifier from the bottom row and hitting L locks the user session.
In fvwm, assuming you have a prog `lk` in your PATH that locks the screen, you can set up this key combo as follows, in `.fvwm/config` or one of the other fvwm config file locations:
Key l A 4 Exec lk
The "A" is for any context. The "4" means X thinks it's mod4, and the way you work out which one it is is:
$ xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_L (0x42), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
The left windows key is called Super_L, which the above says is "mod4" modifier in X, which becomes just "4" in the modifier field of a "Key" directive in fvwm's config.
Comments
Post a Comment