configure non-modifier as a modifier key
This question is similar to:
https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key
I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key has been replaced by Home, End. I'm used to mapping CapsLock as control, so I used xmodmap to map Home, End to Control:
xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
When I press Home (or End) alone, the correct keysym is detected:
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
But I am not able to use the remapped Home or End key as a modifier of any other key: when I press Control+a, the a key is not modified:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157752, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157761, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157912, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157949, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False
Whereas if I use a "real" control key, the "a" key press has a control modifier state:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15160488, (829,406), root:(830,407),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161477, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XmbLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161588, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161842, (829,406), root:(830,407),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Is it possible to configure the Home key in my case as a Control modifier key? Or is there some hardware limitation that prevents this?
keyboard-layout xmodmap keyboard-event
add a comment |
This question is similar to:
https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key
I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key has been replaced by Home, End. I'm used to mapping CapsLock as control, so I used xmodmap to map Home, End to Control:
xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
When I press Home (or End) alone, the correct keysym is detected:
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
But I am not able to use the remapped Home or End key as a modifier of any other key: when I press Control+a, the a key is not modified:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157752, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157761, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157912, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157949, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False
Whereas if I use a "real" control key, the "a" key press has a control modifier state:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15160488, (829,406), root:(830,407),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161477, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XmbLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161588, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161842, (829,406), root:(830,407),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Is it possible to configure the Home key in my case as a Control modifier key? Or is there some hardware limitation that prevents this?
keyboard-layout xmodmap keyboard-event
My answer here might be helpful, i.e. changing the setting in the correct file in the/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…
– jbrock
Jan 16 at 18:25
add a comment |
This question is similar to:
https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key
I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key has been replaced by Home, End. I'm used to mapping CapsLock as control, so I used xmodmap to map Home, End to Control:
xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
When I press Home (or End) alone, the correct keysym is detected:
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
But I am not able to use the remapped Home or End key as a modifier of any other key: when I press Control+a, the a key is not modified:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157752, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157761, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157912, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157949, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False
Whereas if I use a "real" control key, the "a" key press has a control modifier state:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15160488, (829,406), root:(830,407),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161477, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XmbLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161588, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161842, (829,406), root:(830,407),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Is it possible to configure the Home key in my case as a Control modifier key? Or is there some hardware limitation that prevents this?
keyboard-layout xmodmap keyboard-event
This question is similar to:
https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key
I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key has been replaced by Home, End. I'm used to mapping CapsLock as control, so I used xmodmap to map Home, End to Control:
xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
When I press Home (or End) alone, the correct keysym is detected:
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
But I am not able to use the remapped Home or End key as a modifier of any other key: when I press Control+a, the a key is not modified:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157752, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157761, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XmbLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157912, (829,406), root:(830,407),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (61) "a"
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15157949, (829,406), root:(830,407),
state 0x0, keycode 110 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False
Whereas if I use a "real" control key, the "a" key press has a control modifier state:
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15160488, (829,406), root:(830,407),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161477, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XmbLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161588, (829,406), root:(830,407),
state 0x4, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 bytes: (01) ""
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x1000001,
root 0xe0, subw 0x0, time 15161842, (829,406), root:(830,407),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Is it possible to configure the Home key in my case as a Control modifier key? Or is there some hardware limitation that prevents this?
keyboard-layout xmodmap keyboard-event
keyboard-layout xmodmap keyboard-event
edited Jan 16 at 6:55
user84207
asked Jan 16 at 5:34
user84207user84207
2651516
2651516
My answer here might be helpful, i.e. changing the setting in the correct file in the/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…
– jbrock
Jan 16 at 18:25
add a comment |
My answer here might be helpful, i.e. changing the setting in the correct file in the/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…
– jbrock
Jan 16 at 18:25
My answer here might be helpful, i.e. changing the setting in the correct file in the
/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…– jbrock
Jan 16 at 18:25
My answer here might be helpful, i.e. changing the setting in the correct file in the
/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…– jbrock
Jan 16 at 18:25
add a comment |
1 Answer
1
active
oldest
votes
Besides your two commands, you must add Control :xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
xmodmap -e 'add Control = Control_L'
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494734%2fconfigure-non-modifier-as-a-modifier-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Besides your two commands, you must add Control :xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
xmodmap -e 'add Control = Control_L'
add a comment |
Besides your two commands, you must add Control :xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
xmodmap -e 'add Control = Control_L'
add a comment |
Besides your two commands, you must add Control :xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
xmodmap -e 'add Control = Control_L'
Besides your two commands, you must add Control :xmodmap -e 'keycode 110 = Control_L' # Home
xmodmap -e 'keycode 115 = Control_L' # End
xmodmap -e 'add Control = Control_L'
answered yesterday
AndraAndra
31114
31114
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494734%2fconfigure-non-modifier-as-a-modifier-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
My answer here might be helpful, i.e. changing the setting in the correct file in the
/usr/share/X11/xkb/symbols/
directory. unix.stackexchange.com/questions/478315/…– jbrock
Jan 16 at 18:25