]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/lxde/tasks/main.yml
Add dir creation
[perso/Immae/Config/Ansible.git] / roles / lxde / tasks / main.yml
index b91e84a6f94239d350a6efeec4311d15da6f8264..e7de7595bc338c3c9965407112cf459a35132f94 100644 (file)
@@ -2,6 +2,19 @@
 - 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
@@ -9,7 +22,6 @@
     dest: "$XDG_CONFIG_HOME/{{ lxde_config_item }}"
   loop:
     - libfm/libfm.conf
-    - pcmanfm/LXDE/desktop-items-0.conf
     - pcmanfm/LXDE/pcmanfm.conf
     - lxterminal/lxterminal.conf
     - openbox/lxde-rc.xml
     - xinitrc
   loop_control:
     loop_var: lxde_config_item
+- 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 ]