среда, 27 декабря 2006 г.

Get key-strings for use in wmiirc (WMII)

Use "xmodmap", "xev" and "dumpkeys --long-info" for get keybind strings

xmodmap

lock        ISO_Next_Group (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3     
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)



sudo dumpkeys --long-info | less

...
0x002c  comma
0x002d  minus
0x002e  periodshift       Shift_L (0x32),  Shift_R (0x3e)
...


for example:
win+, in wmiii rc -> mod4-comma
win+. in wmiii rc -> mod4-period


You can use "xev" for getting mouse, keyboard and other events.

Комментариев нет: