Ubuntu 24.04 text input hacks

In this article I would like to describe some text input lifehacks that makes my life easier.

Writing unicode special characters

Just press <Left Control> + <Left shift> + <u> and then write hexadecimal code of letter. Here are my favorite codes:

Code Character
2026 … (ellipsis)
201e „ (czech start quote)
201c “ (czech end quote)
2013 – (dash)


There is available documentation.

Text expanding

I have selected menu key as compose key.

Then I have created file ~/.XCompose with content like:

include "%L"
include "/home/me/shared/expand.compose"

And file shared among devices /home/me/shared/expand.compose:

<Multi_key> <p> <m> : "personal@mail.cz"
<Multi_key> <w> <m> : "work@mail.cz"

Then I have added into ~/.profile:

export GTK_IM_MODULE="xim"

And log out and then log back in.

If you change .XCompose, changes are available after nex log in. To reload immediatelly I run:

ibus restart

Emoji

There is neat dialog in Ubuntu allowing you to write unicode emoji symbols. Just press <Left Control> + <.>. In documentation, there is mentioned semicolon instead of dot.

Tags:  Ubuntu