My Arch Linux + Sway desktop config. GNU Stow manages the symlinks.
There are two machines: HP laptop and mini PC.
The sway and alacritty symlinks choose the machine.
Rime config is a Stow package in rime/.
Every deploy step runs through deploy.sh.
./deploy.sh softwareUpdate the system, install or remove packages, and turn on services.
Mihomo comes from ./pkgs/mihomo-*.pkg.tar.zst.
Set MIHOMO_PKG_DIR to use another folder.
./deploy.sh after_mihomoInstall rime-ice with Xiaohe double pinyin (Flypy), update the grammar and
reverse-tone models, and link the patch in rime/. The patch adds
in <-> ing fuzzy pinyin.
./deploy.sh switch mini_pc # or hp_laptop./deploy.sh configLink user and system configs with Stow, and turn on systemd user services.
This also links the Rime patch and reloads fcitx5.
./deploy.sh does the same as ./deploy.sh config.
./deploy.sh decrypt # config.enc.yaml -> etc/mihomo/config.yaml
./deploy.sh encrypt # etc/mihomo/config.yaml -> config.enc.yamlNeeds sops and age.