How do I remap the caps lock key?

1

In the past the past I used to use xmodmap to prevent the Caps Lock button from working, and then tell Launchy to handle the key press instead. I can't seem to do this anymore.

What is the best way to disable Caps Lock's normal behavior, and make it do something else?

From howtogeek.com which has a good answer for any OS.

For Linux (including Ubuntu):

setxkbmap -option

Where can be for example of:

caps:none – Disables Caps Lock. caps:super – Caps Lock becomes an additional Super (aka Win key). caps:ctrl_modifier – Caps Lock becomes an additional Ctrl. caps:numlock – Caps Lock becomes an additional Num Lock. caps:escape – Caps Lock becomes an additional Escape. caps:backspace – Caps Lock becomes an additional Backspace. caps:swapescape – Caps Lock becomes Escape, and Escape becomes Caps Lock

Note: Xmodmap is deprecated in favor of setxkbmap.

You can disable it by going to keyboard->Layouts->options->caps lock behavior and choose "disable...

0 0
2

Over the years I've tried to continually improve my ability to use the keyboard
for navigating around my system. I've used a wide variety of systems throughout
my career that spans nearly two decades, and for the last several years have
focused on Mac OS X for my desktop work. As most Mac addicts are aware of, there are numerous keyboard shortcuts
available that will enable them to speed up their workflow by not having to lift
their hand and make use of a mouse or trackpad.

These keystroke combinations generally require heavy use of modifier keys,
which include specific keys such as Command, Shift, Option, Control,
Caps Lock, and the Fn key.

As a software developer, I find that I need some of these modifier keys
extremely often, but one key that I use quite frequently is the Control key.
However, on my QWERTY keyboard, I personally find that the Control key is
located in a very awkward place. For years I struggled with...

0 0
3

If you are a polite citizen of the Web, you probably rarely use your Caps Lock key. However, it’s in such a useful place on the keyboard, and it would be a shame to see it go to waste. If you want to remap it to be more useful, you can replace your Escape Key with your Caps Lock key in macOS Sierra. This is especially helpful if you have one of the new Touch Bar MacBook Pros, since they completely lack a physical Escape key, opting instead for an “Escape Zone” on the Touch Bar.

1. Open System Preferences under the Apple menu.

2. Open the Keyboard preferences pane found in the second row of System Preferences.

3. Click the “Modifier Keys…” button in the lower-right of the preference pane window.

4. Click the drop-down box next to the “Caps Lock” key.

5. Choose “Escape” from the drop-down list.

6. Click the “OK” button to confirm your change.

You can swiftly and easily remap your “Escape” key to your “Caps Lock” key using the keyboard...

0 0
4
...
0 0
5

The Mac OS X 10.4 Keyboard & Mouse preference pane provides a way to remap certain keys. However, the interface doesn't expose the full functionality -- a common problem with Apple software. Note that this guide assumes you'using the

bash

shell.

Read on to learn...

What keys can be remapped without the use of any third–party software? How do I remap those keys? How do I remap the Caps Lock key to the Escape key?

What keys can be remapped without the use of any third–party software? (The following list shows the key name on the left, and that key's value on the right.)

None — –1 Caps Lock — 0 Shift (Left) — 1 Control (Left) — 2 Option (Left) — 3 Command (Left) — 4 Keypad 0 — 5 Help — 6 Shift (Right) — 9 Control (Right) — 10 Option (Right) — 11 Command (Right) — 12 Kernel Panic — 16

Be warned that the code

16

, when used as the destination of a mapping, actually causes a kernel panic on keypress -- as I've...

0 0