Unable to remap CapsLock key on AwesomeWM with iBus-Mozc
I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.
Also, the key has a strange behavior.
First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.
And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.
I want to use CapsLock as Ctrl on Awesome. I have tried followings:
setxkbmap--setxkbmap -option ctrl:nocaps.
.xmodmap- add a
.conffile to/etc/X11/xorg.conf.d/
- edit
XKBOPTIONin/etc/default/keyboard
However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.
Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.
Does anyone knows what happens?
x11 keyboard-shortcuts keyboard awesome
add a comment |
I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.
Also, the key has a strange behavior.
First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.
And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.
I want to use CapsLock as Ctrl on Awesome. I have tried followings:
setxkbmap--setxkbmap -option ctrl:nocaps.
.xmodmap- add a
.conffile to/etc/X11/xorg.conf.d/
- edit
XKBOPTIONin/etc/default/keyboard
However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.
Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.
Does anyone knows what happens?
x11 keyboard-shortcuts keyboard awesome
add a comment |
I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.
Also, the key has a strange behavior.
First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.
And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.
I want to use CapsLock as Ctrl on Awesome. I have tried followings:
setxkbmap--setxkbmap -option ctrl:nocaps.
.xmodmap- add a
.conffile to/etc/X11/xorg.conf.d/
- edit
XKBOPTIONin/etc/default/keyboard
However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.
Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.
Does anyone knows what happens?
x11 keyboard-shortcuts keyboard awesome
I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.
Also, the key has a strange behavior.
First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.
And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.
I want to use CapsLock as Ctrl on Awesome. I have tried followings:
setxkbmap--setxkbmap -option ctrl:nocaps.
.xmodmap- add a
.conffile to/etc/X11/xorg.conf.d/
- edit
XKBOPTIONin/etc/default/keyboard
However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.
Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.
Does anyone knows what happens?
x11 keyboard-shortcuts keyboard awesome
x11 keyboard-shortcuts keyboard awesome
edited 1 hour ago
Szkieletor
asked 15 hours ago
SzkieletorSzkieletor
83
83
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I use setxbmap and xcape to remap CapsLock.
Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.
I have the following in my .xinitrc:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
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%2f497424%2funable-to-remap-capslock-key-on-awesomewm-with-ibus-mozc%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
I use setxbmap and xcape to remap CapsLock.
Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.
I have the following in my .xinitrc:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
add a comment |
I use setxbmap and xcape to remap CapsLock.
Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.
I have the following in my .xinitrc:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
add a comment |
I use setxbmap and xcape to remap CapsLock.
Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.
I have the following in my .xinitrc:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
I use setxbmap and xcape to remap CapsLock.
Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.
I have the following in my .xinitrc:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
answered 12 hours ago
plothploth
888117
888117
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%2f497424%2funable-to-remap-capslock-key-on-awesomewm-with-ibus-mozc%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