mirror of
https://github.com/foo-dogsquared/ansible-playbooks.git
synced 2025-02-07 06:19:00 +00:00
system/i18n: switch to Flatpak-based setup
This commit is contained in:
parent
916296c6d8
commit
77ca030bae
9
roles/system/i18n/files/org.fcitx.Fcitx5.desktop
Normal file
9
roles/system/i18n/files/org.fcitx.Fcitx5.desktop
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Enable i18n with fcitx5
|
||||||
|
TryExec=flatpak
|
||||||
|
Exec=flatpak run org.fcitx.Fcitx5
|
||||||
|
StartupNotify=false
|
||||||
|
|
||||||
|
X-GNOME-Autostart-Phase=Initialization
|
||||||
|
X-KDE-autostart-phase=1
|
3
roles/system/i18n/meta/main.yml
Normal file
3
roles/system/i18n/meta/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- system/flatpak
|
@ -1,22 +1,28 @@
|
|||||||
|
# Interestingly, it is apparently available as a Flatpak. Surprisingly, it
|
||||||
|
# works as if you installed the native package on most repos.
|
||||||
---
|
---
|
||||||
|
- name: Install fcitx5 nightly Flatpak repo
|
||||||
|
flatpak_remote:
|
||||||
|
state: present
|
||||||
|
name: fcitx5-unstable
|
||||||
|
flatpakrepo_url: https://flatpak.fcitx-im.org/unstable-repo/fcitx5-unstable.flatpakrepo
|
||||||
|
|
||||||
- name: Install i18n tools
|
- name: Install i18n tools
|
||||||
dnf:
|
flatpak:
|
||||||
state: present
|
state: present
|
||||||
name:
|
name: "{{ item }}"
|
||||||
- fcitx5
|
remote: fcitx5-unstable
|
||||||
- fcitx5-configtool
|
loop:
|
||||||
- fcitx5-gtk4
|
- org.fcitx.Fcitx5
|
||||||
- fcitx5-lua
|
- org.fcitx.Fcitx5.Addon.Zhuyin
|
||||||
- fcitx5-mozc
|
- org.fcitx.Fcitx5.Addon.Unikey
|
||||||
- fcitx5-rime
|
- org.fcitx.Fcitx5.Addon.Rime
|
||||||
- librime
|
- org.fcitx.Fcitx5.Addon.Mozc
|
||||||
- librime-tools
|
- org.fcitx.Fcitx5.Addon.ChineseAddons
|
||||||
- mozc
|
- org.fcitx.Fcitx5.Addon.Lua
|
||||||
|
|
||||||
- name: Install fonts for i18n
|
|
||||||
dnf:
|
|
||||||
state: present
|
|
||||||
name:
|
|
||||||
- google-noto-cjk-fonts
|
|
||||||
- google-noto-cjk-fonts-common
|
|
||||||
|
|
||||||
|
- name: Enable fcitx5 to autostart
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/org.fcitx.Fcitx5.desktop"
|
||||||
|
dest: "/etc/xdg/autostart/org.fcitx.Fcitx5.desktop"
|
||||||
|
setype: etc_t
|
||||||
|
Loading…
Reference in New Issue
Block a user