0

I'm running Linux (Ubuntu 20.04) with the XFCE4 window manager. I know some ways to remap the CAPSLOCK key to either be a no-op or to emulate a different key. However, I'm wondering if there is a way to map CAPSLOCK as a dead key?

In other words, I'd like to do things like the following ...

CAPSLOCK + a  =>  á
CAPSLOCK + n  =>  ñ
... etc. ...

I know about ~/.XCompose, but I haven't been able to find any docs about how to map CAPSLOCK as a dead key, or even if that's possible.

Thank you in advance for any thoughts and suggestions.

PS: Note that the term "dead key" has a special meaning. It does not mean "a key that is mapped to do nothing" (and I even specified above that I already know how to make CAPSLOCK be a no-op, and that is not what I'm asking about here). What follows is a more complete definition of "dead key", as I am using the term here.

https://en.wikipedia.org/wiki/Dead_key

HippoMan
  • 409

1 Answers1

1

I'm doing something similar, albeit not with XFace, and not quite as simplistic as your mappings.

I for instance want to be able to produce àáâäå as well, so I use a cadence of keys ...

Setting it up like so:

/usr/bin/setxkbmap -model pc105 -layout us -variant altgr-intl -option nodeadkeys,compose:caps

That command resides in my ~/.fluxbox/startup

This then allows me to e.g. create an á with the following sequence of Keys:

Caps+' a

Other examples: ñ

Caps+~ n

tink
  • 2,059