The config file for my compose key /usr/share/X11/locale/en_US.UTF-8/Compose
lists all the key sequences for composing Greek letters; all of them require the pressure of a special dead_greek
key. This is not a physical key of course, so, how can I assign an arbitrary key sequence to my compose key which produces this virtual dead_greek
?
Also, I'd be interested to know if you have found a comfortable keyboard configuration regarding the compose key in general, and Greek letters in particular.
Best Answer
To help anyone who stumbles here,
You need to configure
~/.XCompose
(see full file below) and restart X session.To type Greek letters on Latin keyboard:
<Multi_key>
in the list below.You can see the list of compose sequences configured system-wide in file
/usr/share/X11/locale/$LANG/Compose
, where$LANG
is environment variable for current locale (for US English, it is equal toen_US.UTF-8
):To enable compose for Greek alphabet add to your
~/.XCompose
file:See also:
XCompose
usage: https://unix.stackexchange.com/a/307711/53143man Compose
for more details.Most used letters can also be set up with separate compose key combinations. For example,
π
:You can also save this list in a file called
GreekCompose
and useinclude
command in~/.XCompose
:The list above was created by manually adjusting output of small Python script: https://github.com/rybak/scripts/blob/master/extra/gen_x_compose.py