banner
biuaxia

biuaxia

"万物皆有裂痕,那是光进来的地方。"
github
bilibili
tg_channel

【Repost】fcitx5 Usage Experience and Beautification Tutorial

title: '[Reprint] fcitx5 Usage Experience and Beautification Tutorial (Creating Skins)'
date: 2021-07-28 09:51:49
comment: false
toc: true
category:

  • Linux
    tags:
  • Reprint
  • Linux
  • fcitx5
  • Usage
  • Experience
  • Beautification
  • Tutorial
  • Creating
  • Skins

This article is a reprint from: fcitx5 Usage Experience and Beautification Tutorial (Creating Skins) - Linux/Unix - Forum


Introduction and Experience Sharing of fcitx5#

  1. After the beta release on July 23rd, fcitx5 can now be used normally on deepin. However, you may have noticed a problem that fcitx5 cannot start automatically on deepin, even if you select the "Start on Boot" option in the icon's right-click menu. Based on my years of experience with Arch Linux, we need to execute the following command in the terminal:
cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/

After restarting the computer, it will start normally.

Creating fcitx5 Skins (Unable to achieve dynamic skins based on Sogou skins)
Yes, you read that right, this time fcitx5 uses Sogou skins!

Without further ado, let's start the tutorial!

Download this repository#

git clone https://github.com/fkxxyz/ssfconv.git cd ssfconv

Download the skin#

First, download your favorite skin from the Sogou input method's skin official website and get the ssf format file, such as [Yuxin] Memories of Dandelion.ssf

Convert the skin#

./ssfconv -t fcitx5 [Yuxin] Memories of Dandelion.ssf [Yuxin] Memories of Dandelion

Copy to the user's skin directory#

mkdir -p ~/.local/share/fcitx5/themes/ cp -r [Yuxin] Memories of Dandelion ~/.local/share/fcitx5/themes/

Use the skin#

Open the fcitx5 configuration, go to the Additional Components tab, Classic User Interface, click on Configuration, and in the dropdown list of themes, select this skin.

Alternatively, you can directly modify the configuration file ~/.config/fcitx5/conf/classicui.conf and change the value of Theme to the name of this skin.

You can use the following command to see the name of this skin:

grep Name ~/.local/share/fcitx5/themes/[Yuxin] Memories of Dandelion/theme.conf

Detailed Introduction#

The usage method is encapsulated very simply, like a converter, which can convert between the following four formats:

ssf format (encrypted)
ssf format (unencrypted, essentially a zip file)
folder (decrypted or unzipped from ssf format)
fcitx format (based on the folder, with fcitx_skin.conf, used for fcitx)
fcitx5 format (based on the folder, with theme.conf, used for fcitx5)
Command line parameters

ssfconv [-t type]

The source file and target file are required parameters, and the target type -t for conversion is an optional parameter. The value of type can be one of the following four values:

  • fcitx - directly used for fcitx folder
  • fcitx5 - directly used for fcitx5 folder
  • dir - unpacked folder
  • encrypted - encrypted ssf skin
  • zip - unencrypted ssf skin (zip)

The default is to convert to fcitx format.

Note that the source file can be any of the above five formats, and there is no need to specify it. The program can intelligently recognize the format.

Known Defects#

fcitx5 can be adjusted perfectly like Sogou input method, but the font set in the theme is invalid. You need to manually set the font. After repeated experiments, setting the font to "Sans 10" seems to be the best experience for most skins.

Reference Articles for this Article:#

Using Sogou Skins with fcitx5 - Clover:

https://www.fkxxyz.com/d/ssfconv2/

Fcitx5 (Simplified Chinese):

https://wiki.archlinux.org/title/Fcitx5_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E5%BC%80%E6%9C%BA%E5%90%AF%E5%8A%A8
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.