-
-
Save cristianovitorino/3d513a1c5956576aba97e0afed30c37a to your computer and use it in GitHub Desktop.
Using Cedilha - ArchLinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author: Nilo Dantas - n1lo | |
Revision: Cristiano Vitorino - cristianovitorino | |
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post | |
How to use Cedilha on US Keyboard on ArchLinux | |
################################################################################################### | |
1) Put: English (US, alt. intl.) on your system keyboard layout. | |
################################################################################################### | |
2) Edit the files: | |
sudo micro /usr/lib/gtk-3.0/3.0.0/immodules.cache | |
Change the line: | |
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" | |
To: | |
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en" | |
sudo micro /usr/lib/gtk-2.0/2.10.0/immodules.cache | |
Changing the line: | |
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" | |
To: | |
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en" | |
################################################################################################### | |
3) Replace "ć" to "ç" and "Ć" to "Ç" on: | |
sudo micro /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 | |
################################################################################################### | |
4) Add two lines on: | |
sudo micro /etc/environment | |
GTK_IM_MODULE=cedilla | |
QT_IM_MODULE=cedilla | |
################################################################################################### | |
5) Restart your computer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment