Created
February 18, 2018 19:20
-
-
Save naaando/8ee7185ee5d0cf050b55568290d8c2cd to your computer and use it in GitHub Desktop.
Patch accent fix for qt apps
This file contains hidden or 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
#!/bin/bash | |
function remove_ibus { | |
cat $1 | grep -v "ibus" $1 > $1 | |
} | |
# Fix keyboard accents | |
echo "Disabling ibus daemon..." | |
remove_ibus ~/.xprofile | |
remove_ibus ~/.profile | |
echo "Fixing keyboard with xim" | |
if (cat ~/.xprofile | grep "QT_IM_MODULE=xim">/dev/null); then | |
echo "xim already set for Qt up on login" | |
else | |
touch ~/.xprofile | |
echo "export QT_IM_MODULE=xim" >> ~/.xprofile | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment