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

How to remap key on i3

asked Jun 1 '15

this post is marked as community wiki

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

hello, I would like to know how I can remap key like Lock key to make it function as Ctrl key thank you

1 answer

Sort by » oldest newest most voted
0

answered Jun 3 '15

i3convert gravatar image

updated Jun 3 '15

You have to use xmodmap. The following commands work on my computer:

xmodmap -e "remove lock = Caps_Lock"
xmodmap -e "keycode 66 = Control_L"
xmodmap -e "add control = Control_L"

66 is the code of the Caps Lock key on my keyboard.

Question Tools

Stats

Asked: Jun 1 '15

Seen: 179 times

Last updated: Jun 03