]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/graphical/tasks/main.yml
Add fcitx configuration
[perso/Immae/Config/Ansible.git] / roles / graphical / tasks / main.yml
index f73623e92160de45c30ffb29753045a58e4afae6..f79f1c48785f42fe211fba47cc9f2815b1e4e233 100644 (file)
     path: "$XDG_DATA_HOME/xorg"
     src: "$XDG_STATE_HOME/xorg"
     state: link
+- name: fcitx configuration dir
+  file:
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+    state: directory
+  loop:
+    - fcitx
+    - fcitx/addon
+    - fcitx/conf
+- name: fcitx configuration
+  copy:
+    src: "config_files/fcitx/{{ item }}"
+    dest: "$XDG_CONFIG_HOME/fcitx/{{ item }}"
+  loop:
+    - config
+    - conf/fcitx-autoeng.config
+    - conf/fcitx-classic-ui.config
+    - conf/fcitx-keyboard.config
+    - conf/fcitx-m17n.config
+    - conf/fcitx-notify.config
+    - conf/fcitx-spell.config
+    - conf/fcitx-table.config
+    - conf/fcitx-unicode.config
+    - conf/fcitx-xim.config
+    - conf/fcitx-xkb.config
+- name: fcitx disabled addons
+  ini_file:
+    path: "$XDG_CONFIG_HOME/fcitx/addon/fcitx-{{ item.0 }}.conf"
+    no_extra_spaces: true
+    section: "Addon"
+    option: "Enabled"
+    value: "{{ item.1 }}"
+  # cf /usr/share/fcitx/addon/
+  loop:
+    - [ "chttrans", "False" ]
+    - [ "clipboard", "False" ]
+    - [ "imselector", "False" ]
+    - [ "kimpanel-ui", "False" ]
+    - [ "pinyin", "False" ]
+    - [ "pinyin-enhance", "False" ]
+    - [ "quickphrase", "False" ]
+    - [ "qw", "False" ]
+
+    - [ "autoeng", "True" ]
+    - [ "classic-ui", "True" ]
+    - [ "dbus", "True" ]
+    - [ "freedesktop-notify", "True" ]
+    - [ "fullwidth-char", "True" ]
+    - [ "ipc", "True" ]
+    - [ "ipcportal", "True" ]
+    - [ "keyboard", "True" ]
+    - [ "m17n", "True" ]
+    - [ "notificationitem", "True" ]
+    - [ "punc", "True" ]
+    - [ "remote-module", "True" ]
+    - [ "spell", "True" ]
+    - [ "table", "True" ]
+    - [ "unicode", "True" ]
+    - [ "vk", "True" ]
+    - [ "x11", "True" ]
+    - [ "xim", "True" ]
+    - [ "xkb", "True" ]
+    - [ "xkbdbus", "True" ]