]> 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 96c70b93e79f36f9daaff2b49835cb51fddb38ec..f79f1c48785f42fe211fba47cc9f2815b1e4e233 100644 (file)
@@ -1,11 +1,19 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - autostart
+    - dunst
 - name: Config files
-  synchronize:
-    recursive: yes
-    archive: no
-    checksum: yes
-    src: config_files/
-    dest: /$XDG_CONFIG_HOME/
+  copy:
+    src: "config_files/{{ item }}"
+    dest: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - redshift.conf
+    - autostart/redshift-gtk.desktop
+    - dunst/dunstrc
 - name: mimeapps file
   copy:
     src: mimeapps.list
     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" ]