Re: Assign Apple Keys = CTRL
According to Andreas Wuest, on Fri, 12 Aug 2005 20:09:51
+0200,
>Hi Brian
>
>On 8/12/05, Brian C <brianwc@berkeley.edu> wrote:
>
>> I want the two "Apple" keys on my powerbook to simply be
>extra CTRL > keys. I've tried to do this a couple different
>ways, but it's never > worked. Anyone know how to do this?
>(Explain step-by-step!) Thanks.
>
>1. $ xev
> 1.1. move mouse pointer into xev window
> 1.2. press the left 'ctrl' key
> 1.3. note the key_sym_ (the name, not its hexadecimal
> representation)
>of the last event in the console output (KEYSYM_CTRLL)
> 1.4. press the right 'ctrl' key
> 1.5. see step 1.3 (KEYSYM_CTRLR)
> 1.6. press the left 'apple' key
> 1.7. note the key_code_ (the decimal value, not its string
>representation) of the last event in the console output
>(KEYCODE_APPLEL)
> 1.8. press the right 'apple' key
> 1.9. see step 1.7 (KEYCODE_APPLER)
>
>2. $ man xmodmap
> 2.1. read it
> 2.2. create a file ".Xmodmap" with the two entries
> keycode KEYCODE_APPLEL = KEYSYM_CTRLL
> keycode KEYCODE_APPLER = KEYSYM_CTRLR
> substituting the names in CAPITAL by the values noted
> during step 1.
>
Right, but what if the keycode returned for the two apple
keys are the same?
Pressing left:
KeyPress event, serial 25, synthetic NO, window 0x3c00001,
root 0x48, subw 0x0, time 608689444, (107,109),
root:(140,158), state 0x0, keycode 115 (keysym 0xffe7,
Meta_L), same_screen YES, XLookupString gives 0 bytes:
""
Pressing right:
KeyPress event, serial 25, synthetic NO, window 0x3c00001,
root 0x48, subw 0x0, time 608737834, (166,163),
root:(199,212), state 0x0, keycode 115 (keysym 0xffe7,
Meta_L), same_screen YES, XLookupString gives 0 bytes:
""
It really look like they are linked to the same wire...
Reply to: