Remapping Capslock as Control: Capslock + Shift + 2 doesn't work
I have a Dell Precision M5530 and I am running xmonad as the DE, I've set up my system to map CapsLock to CTRL via the following:
setxkbmap -option "ctrl:nocaps,altwin:swap_lalt_lwin"
## Set up Alt_R as mod3, need to clear existing mod1 first
xmodmap -e "clear mod1"
xmodmap -e "add mod1 = Alt_L"
xmodmap -e "add mod1 = Meta_L"
xmodmap -e "add mod3 = Alt_R"
Via xmonad, I've mapped CTRL + SHIFT + (some number) to move the current window to a different workspace. Using either the left or right physical control keys, I can move windows successfully to different workspaces. Using caps as the control key, I can move windows to workspaces 1 and 3-9. CapsLock + Shift + 2 doesn't do anything that I can figure out.
In xev, pressing CTRL_L displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39302116, (2801,1352), root:(2802,1386),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
While pressing CapsLock displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39298563, (2801,1352), root:(2802,1386),
state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Using showkey outside of X windows I can see that:
- When pressing the keys individually, I see keycodes in the terminal.
- If I press any two keys of Caps, Shift, 2 I see the appropriate keycodes in the terminal.
- If I press Caps + Shift + 2 in any order, the last key pressed is not recorded.
- If I press Caps + Shift + a number that isn't 2, in any order, all three keys are recorded.
- If I press Win + Shift + Caps + any number, all three keys are recorded.
Dell support claims that this is not a dead key combo on this particular computer. The maddening part is that my desktop computer is using the same configuration and everything works.
Any ideas, solutions, or pointers would be greatly appreciated.
xkb xmodmap
add a comment |
I have a Dell Precision M5530 and I am running xmonad as the DE, I've set up my system to map CapsLock to CTRL via the following:
setxkbmap -option "ctrl:nocaps,altwin:swap_lalt_lwin"
## Set up Alt_R as mod3, need to clear existing mod1 first
xmodmap -e "clear mod1"
xmodmap -e "add mod1 = Alt_L"
xmodmap -e "add mod1 = Meta_L"
xmodmap -e "add mod3 = Alt_R"
Via xmonad, I've mapped CTRL + SHIFT + (some number) to move the current window to a different workspace. Using either the left or right physical control keys, I can move windows successfully to different workspaces. Using caps as the control key, I can move windows to workspaces 1 and 3-9. CapsLock + Shift + 2 doesn't do anything that I can figure out.
In xev, pressing CTRL_L displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39302116, (2801,1352), root:(2802,1386),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
While pressing CapsLock displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39298563, (2801,1352), root:(2802,1386),
state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Using showkey outside of X windows I can see that:
- When pressing the keys individually, I see keycodes in the terminal.
- If I press any two keys of Caps, Shift, 2 I see the appropriate keycodes in the terminal.
- If I press Caps + Shift + 2 in any order, the last key pressed is not recorded.
- If I press Caps + Shift + a number that isn't 2, in any order, all three keys are recorded.
- If I press Win + Shift + Caps + any number, all three keys are recorded.
Dell support claims that this is not a dead key combo on this particular computer. The maddening part is that my desktop computer is using the same configuration and everything works.
Any ideas, solutions, or pointers would be greatly appreciated.
xkb xmodmap
add a comment |
I have a Dell Precision M5530 and I am running xmonad as the DE, I've set up my system to map CapsLock to CTRL via the following:
setxkbmap -option "ctrl:nocaps,altwin:swap_lalt_lwin"
## Set up Alt_R as mod3, need to clear existing mod1 first
xmodmap -e "clear mod1"
xmodmap -e "add mod1 = Alt_L"
xmodmap -e "add mod1 = Meta_L"
xmodmap -e "add mod3 = Alt_R"
Via xmonad, I've mapped CTRL + SHIFT + (some number) to move the current window to a different workspace. Using either the left or right physical control keys, I can move windows successfully to different workspaces. Using caps as the control key, I can move windows to workspaces 1 and 3-9. CapsLock + Shift + 2 doesn't do anything that I can figure out.
In xev, pressing CTRL_L displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39302116, (2801,1352), root:(2802,1386),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
While pressing CapsLock displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39298563, (2801,1352), root:(2802,1386),
state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Using showkey outside of X windows I can see that:
- When pressing the keys individually, I see keycodes in the terminal.
- If I press any two keys of Caps, Shift, 2 I see the appropriate keycodes in the terminal.
- If I press Caps + Shift + 2 in any order, the last key pressed is not recorded.
- If I press Caps + Shift + a number that isn't 2, in any order, all three keys are recorded.
- If I press Win + Shift + Caps + any number, all three keys are recorded.
Dell support claims that this is not a dead key combo on this particular computer. The maddening part is that my desktop computer is using the same configuration and everything works.
Any ideas, solutions, or pointers would be greatly appreciated.
xkb xmodmap
I have a Dell Precision M5530 and I am running xmonad as the DE, I've set up my system to map CapsLock to CTRL via the following:
setxkbmap -option "ctrl:nocaps,altwin:swap_lalt_lwin"
## Set up Alt_R as mod3, need to clear existing mod1 first
xmodmap -e "clear mod1"
xmodmap -e "add mod1 = Alt_L"
xmodmap -e "add mod1 = Meta_L"
xmodmap -e "add mod3 = Alt_R"
Via xmonad, I've mapped CTRL + SHIFT + (some number) to move the current window to a different workspace. Using either the left or right physical control keys, I can move windows successfully to different workspaces. Using caps as the control key, I can move windows to workspaces 1 and 3-9. CapsLock + Shift + 2 doesn't do anything that I can figure out.
In xev, pressing CTRL_L displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39302116, (2801,1352), root:(2802,1386),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
While pressing CapsLock displays:
KeyPress event, serial 28, synthetic NO, window 0x600001,
root 0x19e, subw 0x0, time 39298563, (2801,1352), root:(2802,1386),
state 0x0, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
Using showkey outside of X windows I can see that:
- When pressing the keys individually, I see keycodes in the terminal.
- If I press any two keys of Caps, Shift, 2 I see the appropriate keycodes in the terminal.
- If I press Caps + Shift + 2 in any order, the last key pressed is not recorded.
- If I press Caps + Shift + a number that isn't 2, in any order, all three keys are recorded.
- If I press Win + Shift + Caps + any number, all three keys are recorded.
Dell support claims that this is not a dead key combo on this particular computer. The maddening part is that my desktop computer is using the same configuration and everything works.
Any ideas, solutions, or pointers would be greatly appreciated.
xkb xmodmap
xkb xmodmap
asked 13 mins ago
Jeremiah PeschkaJeremiah Peschka
1764
1764
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%2f509535%2fremapping-capslock-as-control-capslock-shift-2-doesnt-work%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%2f509535%2fremapping-capslock-as-control-capslock-shift-2-doesnt-work%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