The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

switch keyboard layout with Caps Lock

asked 2015-11-23 15:43:24 +0000

forseti gravatar image

I would love to be able to switch keyboard layout with Caps Lock, how can I do it?

I tried to put Caps_Lock in the Ibus Preferences => Keyboard Shortcuts => Next Input Method

and when I use capslock language indicator in the tray changes, but when I am trying to type, it is still capital versus non capital letters.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-12-04 13:01:16 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

You can also try the preset configuration of xkb. For example, add following line to your xsession (it maps caps to ctrl):

setxkbmap -option ctrl:nocaps

BTW, some application will overwrite the xkb configuration (eg, fcitx). So, you may need to check the wiki pages of your apps if it doesn't work.

edit flag offensive delete link more

answered 2015-11-24 08:47:28 +0000

cee gravatar image

As I understand you would like to disable Caps_Lock entirely.
To do so, I have the following lines added to my .Xmodmap file.

clear Lock
keycode 66 = Escape

clear Lockdisables the CapsLock key
keycode 66 = Escape maps Caps
Lock to Escape. For me it did not work with mapping by name, so had to map it's keycode directly.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-11-23 15:43:24 +0000

Seen: 99 times

Last updated: Nov 24