X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Flxde%2Ftasks%2Fmain.yml;h=62ee7ed0bbd20e011317f0055f70a5018da6b333;hb=HEAD;hp=b48b5e56c75fc53a1e069f9a65cf8f7c7c806936;hpb=397c4fed757d201af627636822981e85e84ea572;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/lxde/tasks/main.yml b/roles/lxde/tasks/main.yml index b48b5e5..62ee7ed 100644 --- a/roles/lxde/tasks/main.yml +++ b/roles/lxde/tasks/main.yml @@ -2,10 +2,72 @@ - 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 - synchronize: - recursive: yes - archive: no - checksum: yes - src: config_files/ - dest: /$XDG_CONFIG_HOME/ + 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 ] +- name: Background repository + tags: ["no_bootstrap"] + git: + dest: "$XDG_DATA_HOME/backgrounds" + repo: gitolite@git.immae.eu:perso/Immae/Config/Ansible/Backgrounds