--- - name: Config dirs file: state: directory path: "$XDG_CONFIG_HOME/{{ item }}" loop: - autostart - dunst - name: Config files 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 dest: $XDG_DATA_HOME/applications/ - name: Create xorg state dir file: path: $XDG_STATE_HOME/xorg state: directory - name: Link Xorg state dir 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" ]