Add English (US, alt. intl.)
It's because the cedilla module isn't loaded by default when the locale is set to en, so you have to change the configuration files for gtk to add them:
- Edit configuration files:
sudo vim /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache
sudo vim /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache
On both, find the lines starting with "cedilla" "Cedilla" and add :en to the line. Something like this:
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en"
- Change the Compose file:
sudo sed -i /usr/share/X11/locale/en_US.UTF-8/Compose -e 's/ć/ç/g' -e 's/Ć/Ç/g'
- Instruct the system to load the cedilla module:
Add those lines to /etc/environment:
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla
Reboot and you are done.
Thanks @ericdouglas!
@eudennis, I have some alternative solutions that work with GTK4. I've tested on Ubuntu 22.04:
Alternative solution 2 (system-wide)
/etc/default/locale
with the content:Note: it is important
LANGUAGE=
to be empty.~/.pam_environment
from the user directory (if there is the file):rm ~/.pam_environment
Alternative solution 3 (user space)
~/.XCompose
file with the following content:Extra: the double quote key (use " directly instead of ¨)
sed -i "s|dead_acute,[ ]*dead_diaeresis,[ ]*apostrophe,[ ]*quotedbl|dead_acute, quotedbl|" /usr/share/X11/xkb/symbols/us
References:
/etc/profile.d/cedilla-portuguese.sh
on Ubuntu