keyd icon indicating copy to clipboard operation
keyd copied to clipboard

[X11] unicode char mapping does not work

Open laur89 opened this issue 1 year ago • 3 comments

As per this comment, my understanding is following should work:

[ids]                                                                                                                                                                                                                                                                                                                    
*                                                                                    
                                                                                     
[main]                                                                               
o = ö
$ sudo service keyd restart
$ setxkbmap -option compose:menu   # for good measure

Yet when o is typed:

$ 03a

What am I doing wrong?

$ keyd --version
keyd v2.4.3 ()

Also this bit under Unicode Support in manual is a bit confusing:

In order for this to work, the sequences defined in the compose file shipped with keyd (/usr/share/keyd/keyd.compose) must be accessible

Symlinked /usr/share/keyd/keyd.compose to both my regular user & root's homedir at ~/.XCompose, but that didn't change anything.


Note the shiftedDia version proposed here works perfectly. Are there any considerations whether the macro(compose) should be preferred or avoided over the direct UTF mapping? Is any method generally better, e.g. in terms of cross-x11/wayland functionality?

laur89 avatar Jan 31 '24 12:01 laur89

The 'direct' UTF mapping just transparently creates a macro that does the same thing (you can see what keys keyd is actually outputting using keyd monitor). Symbols are a compositor level thing, and the current approach has some limitations (see #470). Does this happen in every application? What desktop environment are you using?

rvaiya avatar Feb 04 '24 19:02 rvaiya

Not using DE nor a compositor - running a simple i3 session. keyd monitor doesn't show any output on typing letters.

It happens with every program as far as I can tell - browsers, urxvt, xterm, discord, slack, signal, spotify, geany, intellij idea, vnote...

laur89 avatar Feb 04 '24 20:02 laur89

  • running a simple i3 session.

This should work, as most of the XCompose issues are caused by wayland and/or GTK4.

keyd monitor doesn't show any output on typing letters.

Try sudo keyd monitor, if you are seeing any output it should be captured by the monitor command.

It happens with every program as far as I can tell

Have you tried restarting your X session since symlinking the file? Can you double check that the compose contents are actually accessible? (wc -l ~/.XCompose should yield a number in the thousands)

rvaiya avatar Feb 04 '24 22:02 rvaiya

Closing due to inactivity.

rvaiya avatar May 03 '24 22:05 rvaiya