summaryrefslogtreecommitdiff
path: root/roles/lxde/tasks/main.yml
blob: 90dffbb13b1e5686f9a10856e20a934d6c334097 (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
---
- name: Import graphical
  include_role:
    name: graphical
- name: Config dirs
  file:
    state: directory
    path: "$XDG_CONFIG_HOME/{{ item }}"
  loop:
    - libfm
    - pcmanfm/LXDE
    - lxterminal
    - openbox
    - lxpanel/LXDE/panels
    - lxsession-default-apps
    - lxsession/LXDE
    - gpicview
- name: Config files
  copy:
    mode: preserve
    src: "config_files/{{ item }}"
    dest: "$XDG_CONFIG_HOME/{{ item }}"
  loop:
    - libfm/libfm.conf
    - pcmanfm/LXDE/pcmanfm.conf
    - lxterminal/lxterminal.conf
    - openbox/lxde-rc.xml
    - lxpanel/LXDE/panels/panel
    - lxpanel/LXDE/config
    - lxpanel/launchtaskbar.cfg
    - lxsession-default-apps/settings.conf
    - lxsession/LXDE/autostart
    - lxsession/LXDE/desktop.conf
    - gpicview/gpicview.conf
    - xinitrc
- name: pcmanfm destkop configuration
  ini_file:
    path: "$XDG_CONFIG_HOME/pcmanfm/LXDE/desktop-items-0.conf"
    section: "*"
    option: "{{ item.0 }}"
    value: "{{ item.1 }}"
    no_extra_spaces: true
  loop:
    - [ "wallpaper_mode", "crop" ]
    - [ "wallpaper_common", "1" ]
    - [ "desktop_bg", "#000000" ]
    - [ "desktop_fg", "#ffffff" ]
    - [ "desktop_shadow", "#000000" ]
    - [ "desktop_font", "Sans 12" ]
    - [ "folder", "" ]
    - [ "show_wm_menu", "0" ]
    - [ "sort", "mtime;ascending;" ]
    - [ "show_documents", "0" ]
    - [ "show_trash", "1" ]
    - [ "show_mounts", "0" ]
- name: lxmusic configuration
  ini_file:
    path: "$XDG_CONFIG_HOME/lxmusic/config"
    section: Main
    option: "{{ item.0 }}"
    value: "{{ item.1 }}"
    no_extra_spaces: true
  loop:
    - [ "show_tray_icon", 1 ]
    - [ "close_to_tray", 0 ]
    - [ "play_after_exit", 0 ]
    - [ "show_playlist", 1 ]
    - [ "filter", 0 ]