Files

66 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
fcitx5是很好用的一个输入法框架,安装后不需要再安装搜狗拼音,百度输入法,谷歌输入法(谷歌输入法巨难用)等东西了。
fcitx5有个缺点是,与gnome桌面合不来,之前折腾了好久,最后还是转投kde桌面了(真香)。
(我是直接装的ubuntu server, 最开始没有桌面,可以直接装kde. 已经有桌面的小伙伴可以先把kde装了,然后再卸载gnome)
# 1. 安装kde桌面,可以直接装kubuntu-desktop,安装过程会让选桌面管理工具,建议选sddm. (gnome 是用gdm3)
```bash
sudo apt-get install kubuntu-desktop
```
然后重启即可。
# 2. 安装fcitx5
```bash
sudo add-apt-repository ppa:hosxy/fcitx5
sudo apt install fcitx5 fcitx5-*
```
然后配置输入法为fcitx5
```bash
im-config
```
过程中记得选fcitx5
# 3. 配置fcitx5
设置环境变量:在~/.xprofile文件中写入:export QT_IM_MODULE=fcitx
```bash
echo export QT_IM_MODULE=fcitx > ~/.xprofile
source ~/.xprofile
```
配置fcitx5,在~/.config/fcitx5/profile写入:(注意配置的时候要把fcitx5关闭,不然会被覆盖)
```csharp
[Groups/0]
Name="分组 1"
Default Layout=us
DefaultIM=pinyin
[Groups/0/Items/0]
Name=keyboard-us
Layout=
[Groups/0/Items/1]
Name=pinyin
Layout=us
[Groups/1]
Name="分组 2"
Default Layout=cn-altgr-pinyin
DefaultIM=pinyin
[Groups/1/Items/0]
Name=keyboard-cn-altgr-pinyin
Layout=
[Groups/1/Items/1]
Name=pinyin
Layout=
[GroupOrder]
0="分组 1"
1="分组 2"
```