The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

switch keyboard layout with Caps Lock

asked Nov 23 '15

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.

2 answers

Sort by » oldest newest most voted
0

answered Dec 4 '15

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.

0

answered Nov 24 '15

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.

Question Tools

1 follower

Stats

Asked: Nov 23 '15

Seen: 99 times

Last updated: Nov 24