Skip to content

Instantly share code, notes, and snippets.

@psygo
Created March 7, 2021 01:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save psygo/74d0fbbb5b95fc12fae47a48d3764b9d to your computer and use it in GitHub Desktop.
Save psygo/74d0fbbb5b95fc12fae47a48d3764b9d to your computer and use it in GitHub Desktop.
Proper Cedilla under the US Intl with Dead Keys Layout

Proper Cedilla under the US Intl with Dead Keys Layout

You can find the source of this info here.

  1. Edit the following files to have :en at the end of the cedilla line.
    sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache
    sudo vim /usr/lib/gtk-2.0/2.10.0/immodules.cache
  2. Replace "ć" to "ç" and "Ć" to "Ç" on /usr/share/X11/locale/en_US.UTF-8/Compose
    sudo cp /usr/share/X11/locale/en_US.UTF-8/Compose /usr/share/X11/locale/en_US.UTF-8/Compose.bak
    sudo sed 's/ć/ç/g' < /usr/share/X11/locale/en_US.UTF-8/Compose | sed 's/Ć/Ç/g' > Compose
    sudo mv Compose /usr/share/X11/locale/en_US.UTF-8/Compose
  3. Add two lines to /etc/environment:
    GTK_IM_MODULE=cedilla
    QT_IM_MODULE=cedilla
  4. Restart your computer.
@psygo
Copy link
Author

psygo commented Mar 26, 2024

After installing FCITX, I have no idea why, this was undone, and, for a while, I couldn't change it back (I even created an Ask Ubuntu question). But, after going through the procedure twice, it's working now. I think it might be because one of the files is modified sequentially after you modify the first one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment