Skip to content

Instantly share code, notes, and snippets.

@echoriiku
Forked from psygo/cedilla_arch.md
Created August 23, 2021 11:52
Show Gist options
  • Save echoriiku/74e930a3ef011aa65a1b813a7432877b to your computer and use it in GitHub Desktop.
Save echoriiku/74e930a3ef011aa65a1b813a7432877b 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment