Thibaut Cousin wrote:
I saw your mail about configuring internet keys on a Logitech keyboard. I have one too, and I'd like to do the same. How did you do it ? It is probably a xmodmap file. Can you send it to me, please ?
See below. Paul !! ~/.Xmodmap !! !! The leading `!' is the comment sign. !! !! Please note: the natural way to assign keys are their keycodes. !! The only problem is, that keycodes do depend on the architecture, !! therefore keysymbols are used herein. This has the disadvantage !! that this file can only be called once with the program xmodmap. !! To get keycodes of the keys use the program xev. !! The system Xmodmap is /usr/X11R6/lib/X11/Xmodmap, have a look. !! First example: Swap control key with caps lock key just like on !! lk401 from DEC or type 4 from Sun Microsystems !remove Lock = Caps_Lock !remove Control = Control_L !keysym Caps_Lock = Control_L !keysym Control_L = Caps_Lock !add Lock = Caps_Lock !add Control = Control_L !! Second example: Make left Alt key to left Meta key !! Note that afterwards no key is assigned anymore to the symbol Alt_L. !clear Mod1 !keysym Alt_L = Meta_L !add Mod1 = Meta_L !! Third example: Change right Control key to Compose key. !! To do Compose Character, press this key and afterwards two !! characters (e.g. `a' and `^' to get â). !remove Control = Control_R !keysym Control_R = Multi_key !add Control = Control_R !! Fourth example: Make Menu key on WIN95 keyboard doing Compose !keysym Menu = Multi_key !! !! End of standard ~/.Xmodmap keycode 64 = Meta_L keycode 0x6D = Multi_key keycode 120 = F31 keycode 115 = Super_L keycode 116 = Super_R !! The Logitech Internet Keyboard keys keycode 250 = F13 ! WWW keycode 178 = F14 ! History keycode 161 = F15 ! Open URL keycode 163 = F16 ! Home keycode 165 = F17 ! Logitech keycode 151 = F18 ! Print keycode 144 = F19 ! Back keycode 162 = F20 ! Forward keycode 164 = F21 ! Stop keycode 153 = F22 ! Refresh keycode 158 = F23 ! Search keycode 146 = F24 ! Find keycode 166 = F25 ! Add Favorite keycode 152 = F26 ! Open Favorites keycode 160 = F27 ! Hot Links keycode 176 = F28 ! Scroll up keycode 174 = F29 ! Scroll down
participants (1)
-
Paul Abrahams