You are not logged in.

#1 2014-05-10 07:37:40

Grima
Member
Registered: 2011-09-02
Posts: 58

[SOLVED] Replacing a keyboard character with another

Ever since I found out about the compose key, which makes characters like ß, þ, µ and so on easily accessible, I've always missed en-dash (i.e. –). I would like to remap the key combination "compose -" to en-dash. Currently, it produces weird dots ̣̣̣̣ that I never use.

How could I accomplish this task? I'm using Gnome 3.12 if that matters.

Last edited by Grima (2014-05-11 09:18:49)

Offline

#2 2014-05-10 08:54:41

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Replacing a keyboard character with another

You should be able to do this using Xmodmap I reckon.


Burninate!

Offline

#3 2014-05-10 09:09:31

o_caino
Member
Registered: 2013-06-06
Posts: 167

Re: [SOLVED] Replacing a keyboard character with another

The complete list of keysym names is in the header file /usr/include/X11/keysymdef.h
The keysym name for the en-dash is "endash". Take a look at your current configuration with xmodmap -pke and modify the relevant line to use it as input of xmodmap -e, e.g.

xmodmap -e "keycode 61 = minus underscore minus underscore endash dead_abovedot dead_belowdot dead_abovedot"

Offline

#4 2014-05-11 09:18:23

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [SOLVED] Replacing a keyboard character with another

Working great, guys. Thanks a lot!

Offline

Board footer

Powered by FluxBB