X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=blobdiff_plain;f=roles%2Fgraphical%2Ftasks%2Fmain.yml;h=f79f1c48785f42fe211fba47cc9f2815b1e4e233;hp=f73623e92160de45c30ffb29753045a58e4afae6;hb=c32343b4e0a4066527d60ec4e51eefb6cd4eab67;hpb=ba49638af92aaa5349c5476db8136caec4b0166d diff --git a/roles/graphical/tasks/main.yml b/roles/graphical/tasks/main.yml index f73623e..f79f1c4 100644 --- a/roles/graphical/tasks/main.yml +++ b/roles/graphical/tasks/main.yml @@ -27,3 +27,65 @@ 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" ]