This commit is contained in:
Lauri Räsänen 2022-03-10 22:01:56 +02:00
commit a45a0e8685
12 changed files with 311 additions and 0 deletions

21
fcitx.sh Normal file
View file

@ -0,0 +1,21 @@
#!/bin/bash
uid=$(id -u)
if [ $uid == 0 ]; then
echo "run as normal user"
exit
fi
# fcitx5 mozc
read -p "set fcitx env? [y/N]" prompt
if [[ $prompt == "y" ]]; then
echo GTK_IM_MODULE=fcitx | sudo tee -a /etc/environment
echo QT_IM_MODULE=fcitx | sudo tee -a /etc/environment
echo XMODIFIERS=@im=fcitx | sudo tee -a /etc/environment
echo SDL_IM_MODULE=fcitx | sudo tee -a /etc/environment
fi
read -p "launch fcitx5-configtool? [y/N]" prompt
if [[ $prompt == "y" ]]; then
fcitx5-configtool
fi