原创

[manjaro]更新fcitx到fcitx5

前言

manjaro中使用的fcitx版本是4已经很老旧了,需要更新下.

步骤

先直接 用pacman -S fcitx5更新试下

[ya-PC ~]# pacman -S fcitx5
正在解析依赖关系...
正在查找软件包冲突...
:: fcitx5 与 fcitx 有冲突。删除 fcitx 吗? 
错误:无法准备事务处理 (无法满足依赖关系)
:: 删除 fcitx 破坏依赖 'fcitx>=4.2.7' (fcitx-configtool 需要)
:: 删除 fcitx 破坏依赖 'fcitx' (fcitx-googlepinyin 需要)
:: 删除 fcitx 破坏依赖 'fcitx' (fcitx-qt5 需要)
:: 删除 fcitx 破坏依赖 'fcitx' (fcitx-sogoupinyin 需要)

看来不能直接升级,需要先移除sudo pacman -Rs $(pacman -Qsq fcitx)

[ya@ya-PC ~]$ sudo pacman -Rs $(pacman -Qsq fcitx)
[sudo] ya 的密码:正在检查依赖关系...

软件包 (9) libgooglepinyin-0.1.2-5  libidn11-1.33-2  marisa-0.2.6-9  opencc-1.1.4-1  fcitx-4.2.9.9-1  fcitx-configtool-0.4.10-4  fcitx-googlepinyin-0.1.6-7  fcitx-qt5-1.2.7-7  fcitx-sogoupinyin-2.3.2.07-3

全部移去体积:  159.15 MiB

:: 打算删除这些软件包吗? [Y/n] Y
:: 正在处理软件包的变化...
(1/9) 正在删除 fcitx-sogoupinyin                                                                                                               [#######################################################################################] 100% (2/9) 正在删除 opencc [#######################################################################################] 100%
(3/9) 正在删除 marisa                                                                                                                          [#######################################################################################] 100% (4/9) 正在删除 libidn11 [#######################################################################################] 100%
(5/9) 正在删除 fcitx-qt5                                                                                                                       [#######################################################################################] 100% (6/9) 正在删除 fcitx-googlepinyin [#######################################################################################] 100%
(7/9) 正在删除 libgooglepinyin                                                                                                                 [#######################################################################################] 100% (8/9) 正在删除 fcitx-configtool [#######################################################################################] 100%
(9/9) 正在删除 fcitx                                                                                                                           [#######################################################################################] 100% :: 正在运行事务后钩子函数... (1/7) Arming ConditionNeedsUpdate... (2/7) Updating the MIME type database... (3/7) Refreshing PackageKit... (4/7) Probing GTK2 input method modules... (5/7) Probing GTK3 input method modules... (6/7) Updating icon theme caches... (7/7) Updating the desktop file MIME type cache... [ya@ya-PC ~]$

接下来就是安装sudo pacman -S fcitx5 fcitx5-configtool fcitx5-qt fcitx5-gtk fcitx5-chinese-addons fcitx5-material-color

正在解析依赖关系...
正在查找软件包冲突...

软件包 (10) libime-1.0.16-1  marisa-0.2.6-9  opencc-1.1.4-1  xcb-imdkit-1.0.4-1  fcitx5-5.0.21-1  fcitx5-chinese-addons-5.0.16-1
            fcitx5-configtool-5.0.16-1  fcitx5-gtk-5.0.21-1  fcitx5-material-color-0.2.1-1  fcitx5-qt-5.0.16-1

下载大小:      37.64 MiB
全部安装大小:  78.72 MiB

:: 进行安装吗? [Y/n] Y
:: 正在获取软件包......
 libime-1.0.16-1-x86_64                                            27.2 MiB  8.54 MiB/s 00:03 [#######################################################] 100%
 fcitx5-5.0.21-1-x86_64                                             8.1 MiB  9.56 MiB/s 00:01 [#######################################################] 100%
 fcitx5-chinese-addons-5.0.16-1-x86_64                           1213.0 KiB  9.55 MiB/s 00:00 [#######################################################] 100%
 opencc-1.1.4-1-x86_64 已经是最新版本 fcitx5-configtool-5.0.16-1-x86_64                                397.4 KiB  6.16 MiB/s 00:00 [#######################################################] 100%
 fcitx5-qt-5.0.16-1-x86_64                                        340.6 KiB  5.94 MiB/s 00:00 [#######################################################] 100%
 xcb-imdkit-1.0.4-1-x86_64                                        325.9 KiB  5.68 MiB/s 00:00 [#######################################################] 100%
 marisa-0.2.6-9-x86_64 已经是最新版本 fcitx5-gtk-5.0.21-1-x86_64                                        76.7 KiB  2.27 MiB/s 00:00 [#######################################################] 100%
 fcitx5-material-color-0.2.1-1-any                                  5.0 KiB   252 KiB/s 00:00 [#######################################################] 100%
 全部 (10/10)                                                      37.6 MiB  8.06 MiB/s 00:05 [#######################################################] 100%
(10/10) 正在检查密钥环里的密钥                                                                [#######################################################] 100%
(10/10) 正在检查软件包完整性                                                                  [#######################################################] 100%
(10/10) 正在加载软件包文件                                                                    [#######################################################] 100%
(10/10) 正在检查文件冲突                                                                      [#######################################################] 100%
(10/10) 正在检查可用存储空间                                                                  [#######################################################] 100%
:: 正在处理软件包的变化...
( 1/10) 正在安装 xcb-imdkit                                                                   [#######################################################] 100%
( 2/10) 正在安装 fcitx5                                                                       [#######################################################] 100%
( 3/10) 正在安装 fcitx5-qt                                                                    [#######################################################] 100%
( 4/10) 正在安装 fcitx5-configtool                                                            [#######################################################] 100%
fcitx5-configtool 的可选依赖    kdeclarative: for KCM support [已安装]
    kirigami2: for KCM support [已安装]
    plasma-framework: for fcitx5-plasma-theme-generator [已安装]
( 5/10) 正在安装 fcitx5-gtk                                                                   [#######################################################] 100%
( 6/10) 正在安装 libime                                                                       [#######################################################] 100%
( 7/10) 正在安装 marisa                                                                       [#######################################################] 100%
( 8/10) 正在安装 opencc                                                                       [#######################################################] 100%
( 9/10) 正在安装 fcitx5-chinese-addons                                                        [#######################################################] 100%
fcitx5-chinese-addons 的可选依赖    fcitx5-lua: Lua and imeapi support from pinyin
(10/10) 正在安装 fcitx5-material-color                                                        [#######################################################] 100%
:: 正在运行事务后钩子函数...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Refreshing PackageKit...
(3/7) Probing GTK2 input method modules...
(4/7) Probing GTK3 input method modules...
(5/7) Updating icon theme caches...
(6/7) Updating GTK4 module cache...
(7/7) Updating the desktop file MIME type cache...

完成。

随桌面环境自动启动

如果您使用的桌面环境是兼容 XDG 的(例如 KDE、GNOME、Xfce、LXDE等),则 无需 此步骤。

安装皮肤

自动安装皮肤

不知道为啥,命令不会成功安装皮肤。pacman -S fcitx5-material-color

[ya@ya-PC ~]$ sudo pacman -S fcitx5-material-color
[sudo] ya 的密码:警告:fcitx5-material-color-0.2.1-1 已经为最新 -- 重新安装正在解析依赖关系...
正在查找软件包冲突...

软件包 (1) fcitx5-material-color-0.2.1-1

全部安装大小:  0.01 MiB
净更新大小:    0.00 MiB

:: 进行安装吗? [Y/n] Y
(1/1) 正在检查密钥环里的密钥                                                                  [#######################################################] 100%
(1/1) 正在检查软件包完整性                                                                    [#######################################################] 100%
(1/1) 正在加载软件包文件                                                                      [#######################################################] 100%
(1/1) 正在检查文件冲突                                                                        [#######################################################] 100%
(1/1) 正在检查可用存储空间                                                                    [#######################################################] 100%
:: 正在处理软件包的变化...
(1/1) 正在重新安装 fcitx5-material-color                                                      [#######################################################] 100%
:: 正在运行事务后钩子函数...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...

手动安装皮肤

mkdir -p ~/.local/share/fcitx5/themes/Material-Color
git clone https://github.com/hosxy/Fcitx5-Material-Color.git ~/.local/share/fcitx5/themes/Material-Color

修改为blue主题(必须做一次)

cd ~/.local/share/fcitx5/themes/Material-Color
ln -sf ./theme-blue.conf theme.conf

启用主题

修改配置文件~/.config/fcitx5/conf/classicui.conf:,如果没有的则新建一个

# 垂直候选列表
Vertical Candidate List=False

# 按屏幕 DPI 使用
PerScreenDPI=True

# Font (设置成你喜欢的字体)
Font="思源黑体 CN Medium 13"

# 主题
Theme=Material-Color

重启输入法即可生效fcitx5 &

引用

Material-Color
archlinuxmanjaro安装中文输入法(fcitx5)

本文来自:[manjaro]更新fcitx到fcitx5-小码农,转载请保留本条链接,感谢!

温馨提示:
本文最后更新于 2023年01月09日,已超过 473 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我
正文到此结束
本文目录