Squashed
This commit is contained in:
commit
a45a0e8685
12 changed files with 311 additions and 0 deletions
21
fcitx.sh
Normal file
21
fcitx.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue