summaryrefslogtreecommitdiff
path: root/roles/graphical/tasks/main.yml
blob: f79f1c48785f42fe211fba47cc9f2815b1e4e233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
- 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" ]