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'
xmodmap -e 'keycode 115 = Control_L'
When I press Home (or End) alone, the correct keysym is received:
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'
xmodmap -e 'keycode 115 = Control_L'
When I press Home (or End) alone, the correct keysym is received:
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'
xmodmap -e 'keycode 115 = Control_L'
When I press Home (or End) alone, the correct keysym is received:
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'
xmodmap -e 'keycode 115 = Control_L'
When I press Home (or End) alone, the correct keysym is received:
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
asked 11 mins ago
user84207user84207
2631416
2631416
add a comment |
add a comment |
0
active
oldest
votes
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
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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