Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewjong/8909d166135b3b7ff5ff5ba73cfd6b32 to your computer and use it in GitHub Desktop.
Save andrewjong/8909d166135b3b7ff5ff5ba73cfd6b32 to your computer and use it in GitHub Desktop.
#!/bin/bash
# from https://github.com/giswqs/manjaro-linux/blob/master/08-input-methods
echo "Installing input methods ..."
pkgs="adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts fcitx kcm-fcitx fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5 fcitx-ui-light fcitx-table-other"
echo $pkgs
trizen -S $pkgs --noconfirm
touch ~/.xprofile
echo "export GTK_IM_MODULE=fcitx" >> ~/.xprofile
echo "export QT_IM_MODULE=fcitx" >> ~/.xprofile
echo "export XMODIFIERS=@im=fcitx" >> ~/.xprofile
echo "Installation finished!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment