How to map the Caps Lock key to Escape key in Arch Linux
up vote
18
down vote
favorite
My OS is Arch Linux amd64, Gnome ENV.
I want to map the Caps Lock key to Esc (escape) in Arch Linux.
I run the command:
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
It works well, but a moment later, the Caps Lock key works again.
And I must run the command again.
I'm pretty sure that this solution worked well maybe a year ago. What's my problem? Can anyone help me to map the Caps Lock key to
Escape key forever in my Arch Linux OS?
keyboard arch-linux keymap xmodmap
migrated from stackoverflow.com Mar 16 '13 at 9:10
This question came from our site for professional and enthusiast programmers.
add a comment |
up vote
18
down vote
favorite
My OS is Arch Linux amd64, Gnome ENV.
I want to map the Caps Lock key to Esc (escape) in Arch Linux.
I run the command:
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
It works well, but a moment later, the Caps Lock key works again.
And I must run the command again.
I'm pretty sure that this solution worked well maybe a year ago. What's my problem? Can anyone help me to map the Caps Lock key to
Escape key forever in my Arch Linux OS?
keyboard arch-linux keymap xmodmap
migrated from stackoverflow.com Mar 16 '13 at 9:10
This question came from our site for professional and enthusiast programmers.
add a comment |
up vote
18
down vote
favorite
up vote
18
down vote
favorite
My OS is Arch Linux amd64, Gnome ENV.
I want to map the Caps Lock key to Esc (escape) in Arch Linux.
I run the command:
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
It works well, but a moment later, the Caps Lock key works again.
And I must run the command again.
I'm pretty sure that this solution worked well maybe a year ago. What's my problem? Can anyone help me to map the Caps Lock key to
Escape key forever in my Arch Linux OS?
keyboard arch-linux keymap xmodmap
My OS is Arch Linux amd64, Gnome ENV.
I want to map the Caps Lock key to Esc (escape) in Arch Linux.
I run the command:
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
It works well, but a moment later, the Caps Lock key works again.
And I must run the command again.
I'm pretty sure that this solution worked well maybe a year ago. What's my problem? Can anyone help me to map the Caps Lock key to
Escape key forever in my Arch Linux OS?
keyboard arch-linux keymap xmodmap
keyboard arch-linux keymap xmodmap
edited Aug 27 '15 at 5:21
G-Man
5,559102157
5,559102157
asked Mar 16 '13 at 2:57
pexeer
migrated from stackoverflow.com Mar 16 '13 at 9:10
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Mar 16 '13 at 9:10
This question came from our site for professional and enthusiast programmers.
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
up vote
37
down vote
Any of the following (in increasing order of complexity):
Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the
exec gnome-session
(or similar) line in your~/.xinitrc
or~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap.
dconf-editor
>org.gnome.desktop.input-sources.xkb-options
> Addcaps:escape
to the aforementionned field.
gnome-session-settings
> Startup Programs > Add > Name=Remap caps lock to escape, command=setxkbmap -option caps:escape
- Create a custom keyboard layout
FYI, I obtained the xkb rule by grepping /usr/share/X11/xkb/rules
for caps
and esc
.
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line viagsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
add a comment |
up vote
5
down vote
For use in X
, the Arch Wiki Gnome page has instructions for modifying the keyboard with XkbOptions:
Using the dconf-editor, navigate to the key named org.gnome.desktop.input-sources.xkb-options and add desired XkbOptions (e.g. 'caps:swapescape') to the list.
In the console, you can create a custom keymap for the same effect. Create your personal keymap with the requisite changes for CapsLock and Escape at /usr/share/kbd/keymaps/i386/qwerty/yourmap
then tar
it and include a line in /etc/vconsole.conf
to call it:
KEYMAP=yourmap
add a comment |
up vote
3
down vote
You can use xmodmap. Put your ~/.Xmodmap
:
remove Lock=Caps_Lock
keysym Escape=Caps_Lock
keysym Caps_Lock=Escape
add Lock=Caps_Lock
(be sure at starting X will use your ~/.Xmodmap
)
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in~/.Xmodmap
, nothing happens :(
– Jan Warchoł
Nov 20 '15 at 20:29
Put linexmodmap ~/.Xmodmap
to your~/.xinitrc
!
– uzsolt
Nov 21 '15 at 7:04
add a comment |
up vote
2
down vote
Xorg.conf
You can achieve this by editing the file /etc/X11/xorg.conf.d/00-keyboard.conf
.
Example file:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbOptions" "caps:swapescape"
EndSection
You can specify multiple XkbOptions, for example caps:swapcaps,terminate:ctrl_alt_bksp
for having esc and caps swapped but also allowing the X to be killed with CtrlAlt Backspace. You can find more info about this in man xkeyboard-config
.
GUI
You can also use GNOME Tweak Tool (gnome-tweak-tool package).
Just click on Typing
and then choose whatever you like from the Ctrl position
menu (see image below).
add a comment |
up vote
0
down vote
! I don't know why the answers above don't work. Here is a working one for me. In your ~/.Xmodmap
! 66 is the keycode of Caps_Lock
clear Lock
keycode 66 = Escape
and then
$ xmodmap ~/.Xmodmap
I'm using Fedora and non-Gnome window manager. HTH
add a comment |
up vote
0
down vote
The file /etc/X11/xorg.conf.d/00-keyboard.conf
can also be auto-generated using systemd-localed
. Use the following command:
localectl set-x11-keymap us "" "" caps:escape
Or, including some other useful options:
localectl set-x11-keymap us,de "" "" caps:escape,grp:alt_caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,terminate:ctrl_alt_bksp,eurosign:e,rupeesign:4
Quick explanations:
CapsLk functions as Esc
- Toggles between two keyboard layouts
us
/de
with Alt+CapsLk
- CapsLk LED indicates which layout is active
- Right Alt (RAlt) is the "multikey" (see Compose Key)
RAlt+e generates€
RAlt+4 generates₹
(similar to how Shift+4 generates$
)
Ctrl+Alt+Backspace kills X
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fsuperuser.com%2fquestions%2f566871%2fhow-to-map-the-caps-lock-key-to-escape-key-in-arch-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
37
down vote
Any of the following (in increasing order of complexity):
Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the
exec gnome-session
(or similar) line in your~/.xinitrc
or~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap.
dconf-editor
>org.gnome.desktop.input-sources.xkb-options
> Addcaps:escape
to the aforementionned field.
gnome-session-settings
> Startup Programs > Add > Name=Remap caps lock to escape, command=setxkbmap -option caps:escape
- Create a custom keyboard layout
FYI, I obtained the xkb rule by grepping /usr/share/X11/xkb/rules
for caps
and esc
.
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line viagsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
add a comment |
up vote
37
down vote
Any of the following (in increasing order of complexity):
Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the
exec gnome-session
(or similar) line in your~/.xinitrc
or~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap.
dconf-editor
>org.gnome.desktop.input-sources.xkb-options
> Addcaps:escape
to the aforementionned field.
gnome-session-settings
> Startup Programs > Add > Name=Remap caps lock to escape, command=setxkbmap -option caps:escape
- Create a custom keyboard layout
FYI, I obtained the xkb rule by grepping /usr/share/X11/xkb/rules
for caps
and esc
.
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line viagsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
add a comment |
up vote
37
down vote
up vote
37
down vote
Any of the following (in increasing order of complexity):
Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the
exec gnome-session
(or similar) line in your~/.xinitrc
or~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap.
dconf-editor
>org.gnome.desktop.input-sources.xkb-options
> Addcaps:escape
to the aforementionned field.
gnome-session-settings
> Startup Programs > Add > Name=Remap caps lock to escape, command=setxkbmap -option caps:escape
- Create a custom keyboard layout
FYI, I obtained the xkb rule by grepping /usr/share/X11/xkb/rules
for caps
and esc
.
Any of the following (in increasing order of complexity):
Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the
exec gnome-session
(or similar) line in your~/.xinitrc
or~/.xsession
.
setxkbmap -option caps:escape
setxkbmap
can be found in extra/xorg-setxkbmap.
dconf-editor
>org.gnome.desktop.input-sources.xkb-options
> Addcaps:escape
to the aforementionned field.
gnome-session-settings
> Startup Programs > Add > Name=Remap caps lock to escape, command=setxkbmap -option caps:escape
- Create a custom keyboard layout
FYI, I obtained the xkb rule by grepping /usr/share/X11/xkb/rules
for caps
and esc
.
edited Aug 27 '15 at 4:52
fixer1234
17.7k144581
17.7k144581
answered Mar 19 '13 at 20:51
pilona
1,02369
1,02369
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line viagsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
add a comment |
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line viagsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
2
2
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
The dconf method worked perfectly for me thanks!
– Keith Smiley
Oct 28 '13 at 4:44
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line via
gsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
Thanks for no. 2. I was looking for that info for ages. No I can set this on the command line via
gsettings org.gnome.desktop.input-sources xkb-options ['caps:none', 'numpad:pc', 'numpad:mac']
– Oliver Jan Krylow
Aug 20 '16 at 20:53
add a comment |
up vote
5
down vote
For use in X
, the Arch Wiki Gnome page has instructions for modifying the keyboard with XkbOptions:
Using the dconf-editor, navigate to the key named org.gnome.desktop.input-sources.xkb-options and add desired XkbOptions (e.g. 'caps:swapescape') to the list.
In the console, you can create a custom keymap for the same effect. Create your personal keymap with the requisite changes for CapsLock and Escape at /usr/share/kbd/keymaps/i386/qwerty/yourmap
then tar
it and include a line in /etc/vconsole.conf
to call it:
KEYMAP=yourmap
add a comment |
up vote
5
down vote
For use in X
, the Arch Wiki Gnome page has instructions for modifying the keyboard with XkbOptions:
Using the dconf-editor, navigate to the key named org.gnome.desktop.input-sources.xkb-options and add desired XkbOptions (e.g. 'caps:swapescape') to the list.
In the console, you can create a custom keymap for the same effect. Create your personal keymap with the requisite changes for CapsLock and Escape at /usr/share/kbd/keymaps/i386/qwerty/yourmap
then tar
it and include a line in /etc/vconsole.conf
to call it:
KEYMAP=yourmap
add a comment |
up vote
5
down vote
up vote
5
down vote
For use in X
, the Arch Wiki Gnome page has instructions for modifying the keyboard with XkbOptions:
Using the dconf-editor, navigate to the key named org.gnome.desktop.input-sources.xkb-options and add desired XkbOptions (e.g. 'caps:swapescape') to the list.
In the console, you can create a custom keymap for the same effect. Create your personal keymap with the requisite changes for CapsLock and Escape at /usr/share/kbd/keymaps/i386/qwerty/yourmap
then tar
it and include a line in /etc/vconsole.conf
to call it:
KEYMAP=yourmap
For use in X
, the Arch Wiki Gnome page has instructions for modifying the keyboard with XkbOptions:
Using the dconf-editor, navigate to the key named org.gnome.desktop.input-sources.xkb-options and add desired XkbOptions (e.g. 'caps:swapescape') to the list.
In the console, you can create a custom keymap for the same effect. Create your personal keymap with the requisite changes for CapsLock and Escape at /usr/share/kbd/keymaps/i386/qwerty/yourmap
then tar
it and include a line in /etc/vconsole.conf
to call it:
KEYMAP=yourmap
answered Mar 16 '13 at 4:10
jasonwryan
add a comment |
add a comment |
up vote
3
down vote
You can use xmodmap. Put your ~/.Xmodmap
:
remove Lock=Caps_Lock
keysym Escape=Caps_Lock
keysym Caps_Lock=Escape
add Lock=Caps_Lock
(be sure at starting X will use your ~/.Xmodmap
)
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in~/.Xmodmap
, nothing happens :(
– Jan Warchoł
Nov 20 '15 at 20:29
Put linexmodmap ~/.Xmodmap
to your~/.xinitrc
!
– uzsolt
Nov 21 '15 at 7:04
add a comment |
up vote
3
down vote
You can use xmodmap. Put your ~/.Xmodmap
:
remove Lock=Caps_Lock
keysym Escape=Caps_Lock
keysym Caps_Lock=Escape
add Lock=Caps_Lock
(be sure at starting X will use your ~/.Xmodmap
)
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in~/.Xmodmap
, nothing happens :(
– Jan Warchoł
Nov 20 '15 at 20:29
Put linexmodmap ~/.Xmodmap
to your~/.xinitrc
!
– uzsolt
Nov 21 '15 at 7:04
add a comment |
up vote
3
down vote
up vote
3
down vote
You can use xmodmap. Put your ~/.Xmodmap
:
remove Lock=Caps_Lock
keysym Escape=Caps_Lock
keysym Caps_Lock=Escape
add Lock=Caps_Lock
(be sure at starting X will use your ~/.Xmodmap
)
You can use xmodmap. Put your ~/.Xmodmap
:
remove Lock=Caps_Lock
keysym Escape=Caps_Lock
keysym Caps_Lock=Escape
add Lock=Caps_Lock
(be sure at starting X will use your ~/.Xmodmap
)
answered Mar 16 '13 at 9:45
uzsolt
967411
967411
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in~/.Xmodmap
, nothing happens :(
– Jan Warchoł
Nov 20 '15 at 20:29
Put linexmodmap ~/.Xmodmap
to your~/.xinitrc
!
– uzsolt
Nov 21 '15 at 7:04
add a comment |
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in~/.Xmodmap
, nothing happens :(
– Jan Warchoł
Nov 20 '15 at 20:29
Put linexmodmap ~/.Xmodmap
to your~/.xinitrc
!
– uzsolt
Nov 21 '15 at 7:04
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
This is the correct, distro-agnostic and desktop-agnostic answer.
– dotancohen
Nov 1 '15 at 11:41
When I put this in
~/.Xmodmap
, nothing happens :(– Jan Warchoł
Nov 20 '15 at 20:29
When I put this in
~/.Xmodmap
, nothing happens :(– Jan Warchoł
Nov 20 '15 at 20:29
Put line
xmodmap ~/.Xmodmap
to your ~/.xinitrc
!– uzsolt
Nov 21 '15 at 7:04
Put line
xmodmap ~/.Xmodmap
to your ~/.xinitrc
!– uzsolt
Nov 21 '15 at 7:04
add a comment |
up vote
2
down vote
Xorg.conf
You can achieve this by editing the file /etc/X11/xorg.conf.d/00-keyboard.conf
.
Example file:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbOptions" "caps:swapescape"
EndSection
You can specify multiple XkbOptions, for example caps:swapcaps,terminate:ctrl_alt_bksp
for having esc and caps swapped but also allowing the X to be killed with CtrlAlt Backspace. You can find more info about this in man xkeyboard-config
.
GUI
You can also use GNOME Tweak Tool (gnome-tweak-tool package).
Just click on Typing
and then choose whatever you like from the Ctrl position
menu (see image below).
add a comment |
up vote
2
down vote
Xorg.conf
You can achieve this by editing the file /etc/X11/xorg.conf.d/00-keyboard.conf
.
Example file:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbOptions" "caps:swapescape"
EndSection
You can specify multiple XkbOptions, for example caps:swapcaps,terminate:ctrl_alt_bksp
for having esc and caps swapped but also allowing the X to be killed with CtrlAlt Backspace. You can find more info about this in man xkeyboard-config
.
GUI
You can also use GNOME Tweak Tool (gnome-tweak-tool package).
Just click on Typing
and then choose whatever you like from the Ctrl position
menu (see image below).
add a comment |
up vote
2
down vote
up vote
2
down vote
Xorg.conf
You can achieve this by editing the file /etc/X11/xorg.conf.d/00-keyboard.conf
.
Example file:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbOptions" "caps:swapescape"
EndSection
You can specify multiple XkbOptions, for example caps:swapcaps,terminate:ctrl_alt_bksp
for having esc and caps swapped but also allowing the X to be killed with CtrlAlt Backspace. You can find more info about this in man xkeyboard-config
.
GUI
You can also use GNOME Tweak Tool (gnome-tweak-tool package).
Just click on Typing
and then choose whatever you like from the Ctrl position
menu (see image below).
Xorg.conf
You can achieve this by editing the file /etc/X11/xorg.conf.d/00-keyboard.conf
.
Example file:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbOptions" "caps:swapescape"
EndSection
You can specify multiple XkbOptions, for example caps:swapcaps,terminate:ctrl_alt_bksp
for having esc and caps swapped but also allowing the X to be killed with CtrlAlt Backspace. You can find more info about this in man xkeyboard-config
.
GUI
You can also use GNOME Tweak Tool (gnome-tweak-tool package).
Just click on Typing
and then choose whatever you like from the Ctrl position
menu (see image below).
edited May 27 at 21:13
answered Aug 10 '17 at 12:20
styrofoam fly
9762917
9762917
add a comment |
add a comment |
up vote
0
down vote
! I don't know why the answers above don't work. Here is a working one for me. In your ~/.Xmodmap
! 66 is the keycode of Caps_Lock
clear Lock
keycode 66 = Escape
and then
$ xmodmap ~/.Xmodmap
I'm using Fedora and non-Gnome window manager. HTH
add a comment |
up vote
0
down vote
! I don't know why the answers above don't work. Here is a working one for me. In your ~/.Xmodmap
! 66 is the keycode of Caps_Lock
clear Lock
keycode 66 = Escape
and then
$ xmodmap ~/.Xmodmap
I'm using Fedora and non-Gnome window manager. HTH
add a comment |
up vote
0
down vote
up vote
0
down vote
! I don't know why the answers above don't work. Here is a working one for me. In your ~/.Xmodmap
! 66 is the keycode of Caps_Lock
clear Lock
keycode 66 = Escape
and then
$ xmodmap ~/.Xmodmap
I'm using Fedora and non-Gnome window manager. HTH
! I don't know why the answers above don't work. Here is a working one for me. In your ~/.Xmodmap
! 66 is the keycode of Caps_Lock
clear Lock
keycode 66 = Escape
and then
$ xmodmap ~/.Xmodmap
I'm using Fedora and non-Gnome window manager. HTH
answered Oct 20 '13 at 22:17
John Chain
1114
1114
add a comment |
add a comment |
up vote
0
down vote
The file /etc/X11/xorg.conf.d/00-keyboard.conf
can also be auto-generated using systemd-localed
. Use the following command:
localectl set-x11-keymap us "" "" caps:escape
Or, including some other useful options:
localectl set-x11-keymap us,de "" "" caps:escape,grp:alt_caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,terminate:ctrl_alt_bksp,eurosign:e,rupeesign:4
Quick explanations:
CapsLk functions as Esc
- Toggles between two keyboard layouts
us
/de
with Alt+CapsLk
- CapsLk LED indicates which layout is active
- Right Alt (RAlt) is the "multikey" (see Compose Key)
RAlt+e generates€
RAlt+4 generates₹
(similar to how Shift+4 generates$
)
Ctrl+Alt+Backspace kills X
add a comment |
up vote
0
down vote
The file /etc/X11/xorg.conf.d/00-keyboard.conf
can also be auto-generated using systemd-localed
. Use the following command:
localectl set-x11-keymap us "" "" caps:escape
Or, including some other useful options:
localectl set-x11-keymap us,de "" "" caps:escape,grp:alt_caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,terminate:ctrl_alt_bksp,eurosign:e,rupeesign:4
Quick explanations:
CapsLk functions as Esc
- Toggles between two keyboard layouts
us
/de
with Alt+CapsLk
- CapsLk LED indicates which layout is active
- Right Alt (RAlt) is the "multikey" (see Compose Key)
RAlt+e generates€
RAlt+4 generates₹
(similar to how Shift+4 generates$
)
Ctrl+Alt+Backspace kills X
add a comment |
up vote
0
down vote
up vote
0
down vote
The file /etc/X11/xorg.conf.d/00-keyboard.conf
can also be auto-generated using systemd-localed
. Use the following command:
localectl set-x11-keymap us "" "" caps:escape
Or, including some other useful options:
localectl set-x11-keymap us,de "" "" caps:escape,grp:alt_caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,terminate:ctrl_alt_bksp,eurosign:e,rupeesign:4
Quick explanations:
CapsLk functions as Esc
- Toggles between two keyboard layouts
us
/de
with Alt+CapsLk
- CapsLk LED indicates which layout is active
- Right Alt (RAlt) is the "multikey" (see Compose Key)
RAlt+e generates€
RAlt+4 generates₹
(similar to how Shift+4 generates$
)
Ctrl+Alt+Backspace kills X
The file /etc/X11/xorg.conf.d/00-keyboard.conf
can also be auto-generated using systemd-localed
. Use the following command:
localectl set-x11-keymap us "" "" caps:escape
Or, including some other useful options:
localectl set-x11-keymap us,de "" "" caps:escape,grp:alt_caps_toggle,grp_led:caps,lv3:ralt_switch_multikey,terminate:ctrl_alt_bksp,eurosign:e,rupeesign:4
Quick explanations:
CapsLk functions as Esc
- Toggles between two keyboard layouts
us
/de
with Alt+CapsLk
- CapsLk LED indicates which layout is active
- Right Alt (RAlt) is the "multikey" (see Compose Key)
RAlt+e generates€
RAlt+4 generates₹
(similar to how Shift+4 generates$
)
Ctrl+Alt+Backspace kills X
answered Nov 27 at 16:54
friederbluemle
267310
267310
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fsuperuser.com%2fquestions%2f566871%2fhow-to-map-the-caps-lock-key-to-escape-key-in-arch-linux%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