You are not logged in.

#1 2014-11-13 21:13:45

zfjagann
Member
From: California
Registered: 2011-08-12
Posts: 6

Rebind Caps lock to both Esc and Ctrl

I'm trying to rebind Caps lock to both the Escape and Control keys.

The exact behavior I want is:

If Caps-Lock is held while another key is pressed: it behaves like control
If Caps-Lock is pressed alone: it behaves like escape

I've used xmodmap to remap single keys in the past, but this use case seems a little different that single key remapping.

I'm basing this behavior on this blog post, describing how to implement this behavior on OSX using some utilities.

I've used xmodmap and have read about xkb a little, but I'm unsure what combination of utilities I could use to achieve the desired effect on a linux system.

Anyone have any recommendations on a setup that might produce the desired effects using xmodmap, xkb or other tools?

Offline

#2 2014-11-13 21:27:25

mar04
Member
From: Poland
Registered: 2010-02-08
Posts: 117

Re: Rebind Caps lock to both Esc and Ctrl

Install xcape, it's in AUR.

Offline

#3 2014-11-13 21:38:54

zfjagann
Member
From: California
Registered: 2011-08-12
Posts: 6

Re: Rebind Caps lock to both Esc and Ctrl

That's exactly what I was looking for, thanks!

Offline

Board footer

Powered by FluxBB