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 2015-06-01 18:17:44 +0000

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-03 03:28:34 +0000

i3convert gravatar image

updated 2015-06-03 03:30:47 +0000

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-06-01 18:17:44 +0000

Seen: 179 times

Last updated: Jun 03