Remap Caps Lock to Tab
Mon 18 February 2019
Don't want to waste prime keyboard real estate on a key you never use?
First, find out the keycode of your Caps Lock key: run xev
, repeatedly press Caps Lock, note the keycode you see in the logs.
Next, create or append to the .Xmodmap file in your home directory:
clear Lock keycode 66 = Tab
Where you replace 66
with whichever keycode you saw in the output of xev
.
Finally, load the map: xmodmap .Xmodmap
.
You can of course replace it with any other key as well, not just tab.
Tags: misc
M â MARKDOWN
italics | surround text with *asterisks* |
bold | surround text with **two asterisks** |
hyperlink | [hyperlink](https://example.com)or just a bare URL |
code | surround text with `backticks` |
surround text with ~~two tilde characters~~ | |
quote | prefix with > |
Loading comments...