Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have some problem with my left little finger. So I'm trying to remap the key which looks like this: enter image description here

with the CTRL-button. That part I managed. Now I want to place that key on the caps lock key instead. That's the part where I am stuck.

This is my xmodmap-file:

clear control
keycode 35 = Control_R
add control = Control_R Control_L
clear Lock
keycode 66 = dead_diaeresis

and this is what xev shows me when currently pressing the key in the picture:

KeyPress event, serial 29, synthetic NO, window 0x3000001,
    root 0xc3, subw 0x0, time 11475613, (392,225), root:(393,308),
    state 0x0, keycode 35 (keysym 0xffe4, Control_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x3000001,
    root 0xc3, subw 0x0, time 11475701, (392,225), root:(393,308),
    state 0x4, keycode 35 (keysym 0xffe4, Control_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

And this is what xev shows me currently when pressing Caps Lock:

KeyPress event, serial 32, synthetic NO, window 0x3000001,
    root 0xc3, subw 0x0, time 11549397, (493,363), root:(494,446),
    state 0x0, keycode 66 (keysym 0xfe57, dead_diaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c2 a8) "¨"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 32, synthetic NO, window 0x3000001,
    root 0xc3, subw 0x0, time 11549493, (493,363), root:(494,446),
    state 0x0, keycode 66 (keysym 0xfe57, dead_diaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c2 a8) "¨"
    XFilterEvent returns: False
share|improve this question
    
Take a look at my Post, see if it helps. –  Mitch Jun 27 '13 at 11:39
    
Unfortunatly not. But I did solve it. :-) –  Niclas Nilsson Jun 28 '13 at 9:41

1 Answer 1

up vote 0 down vote accepted

I solved it, mostly. I can't write chars with diaeresis like ë or ü, but I don't do that anyway. My theory is that I can't use AltGr and Caps Lock in the same time. But I don't know.

Anyway, this is my .Xmodmap file:

! Remap Ctrl to the ^ key
clear control
keycode 35 = Control_R
add control = Control_R Control_L

! Remap ~ (and ^ with a shift) to Caps Lock, AltGr don't seem to work :-/
clear Lock
keycode 66 = asciitilde dead_circumflex asciitilde asciitilde asciitilde dead_caron asciitilde 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.