2022-03-11 09:59:12 +01:00
|
|
|
---
|
|
|
|
|
2022-03-22 13:02:41 +01:00
|
|
|
- name: General Changes | Check if xfce session is running
|
|
|
|
shell:
|
|
|
|
cmd: "echo $DESKTOP_SESSION"
|
|
|
|
register: session_running
|
|
|
|
|
|
|
|
- name: General Changes | Debug session_running
|
|
|
|
debug:
|
|
|
|
var: session_running
|
|
|
|
|
|
|
|
- name: General Changes | Stop execution if xfce session is not running
|
|
|
|
fail:
|
|
|
|
msg: "xfce session is not running"
|
|
|
|
when: session_running.stdout and session_running.stdout != 'xfce'
|
2022-03-11 09:59:12 +01:00
|
|
|
|
|
|
|
- name: General Changes | Hide icons
|
|
|
|
xfconf:
|
|
|
|
channel: "xfce4-desktop"
|
|
|
|
property: "/desktop-icons/style"
|
|
|
|
value_type: "int"
|
|
|
|
value: 0
|
|
|
|
|
2022-03-15 06:42:43 +01:00
|
|
|
- name: General Changes | Update Window Manager - cycle_draw_frame
|
2022-03-11 09:59:12 +01:00
|
|
|
xfconf:
|
|
|
|
channel: xfwm4
|
|
|
|
property: /general/cycle_draw_frame
|
|
|
|
value_type: bool
|
|
|
|
value: "false"
|
|
|
|
|
2022-03-15 06:42:43 +01:00
|
|
|
- name: General Changes | Update Window Manager - placement_mode
|
2022-03-11 09:59:12 +01:00
|
|
|
xfconf:
|
|
|
|
channel: xfwm4
|
|
|
|
property: /general/placement_mode
|
|
|
|
value_type: string
|
|
|
|
value: center
|
|
|
|
|
2022-03-15 06:42:43 +01:00
|
|
|
- name: General Changes | Update Window Manager - show_dock_shadow
|
2022-03-11 09:59:12 +01:00
|
|
|
xfconf:
|
|
|
|
channel: xfwm4
|
|
|
|
property: /general/show_dock_shadow
|
|
|
|
value_type: bool
|
|
|
|
value: "false"
|
|
|
|
|
2022-03-21 14:15:40 +01:00
|
|
|
- name: General Changes | Make sure ~/Downloads directory exists
|
|
|
|
file:
|
|
|
|
path: "{{ home_directory }}/Downloads"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: General Changes | Check if already downloaded
|
2022-03-23 15:23:47 +01:00
|
|
|
shell:
|
|
|
|
cmd: "ls {{ home_directory }}/Downloads/update-xfce-bigsur"
|
|
|
|
register: has_content
|
|
|
|
ignore_errors: yes
|
2022-03-21 14:15:40 +01:00
|
|
|
|
2022-03-11 09:59:12 +01:00
|
|
|
- name: General Changes | Download and Unzip update-xfce-bigsur.zip
|
|
|
|
unarchive:
|
|
|
|
src: "{{ update_xfce_bigsur_file_url }}"
|
2022-03-15 06:42:43 +01:00
|
|
|
dest: "{{ home_directory }}/Downloads"
|
2022-03-11 09:59:12 +01:00
|
|
|
remote_src: yes
|
2022-03-23 15:23:47 +01:00
|
|
|
when: has_content.stdout_lines | length == 0
|
2022-03-11 09:59:12 +01:00
|
|
|
|
|
|
|
- name: General Changes | Copy wallpapers to ~/Pictures
|
2022-03-24 06:38:24 +01:00
|
|
|
become: yes
|
2022-03-11 09:59:12 +01:00
|
|
|
copy:
|
2022-03-15 06:42:43 +01:00
|
|
|
src: "{{ home_directory }}/Downloads/update-xfce-bigsur/wallpapers"
|
|
|
|
dest: "{{ home_directory }}/Pictures"
|
2022-03-11 09:59:12 +01:00
|
|
|
remote_src: yes
|
|
|
|
|
2022-03-22 13:02:41 +01:00
|
|
|
- name: General Changes | Get propery name for setting wallpaper
|
|
|
|
shell:
|
|
|
|
cmd: "xfconf-query -c xfce4-desktop -l | grep 'last-image$'"
|
|
|
|
register: wallpaper_property
|
|
|
|
|
|
|
|
- name: Debug | Debug wallpaper_property
|
|
|
|
debug:
|
|
|
|
var: wallpaper_property
|
|
|
|
|
|
|
|
- name: Debug | Debug wallpaper_property.stdout_lines
|
|
|
|
debug:
|
|
|
|
var: wallpaper_property.stdout_lines[0]
|
|
|
|
|
2022-03-11 09:59:12 +01:00
|
|
|
- name: General Changes | Change wallpaper
|
|
|
|
xfconf:
|
|
|
|
channel: "xfce4-desktop"
|
2022-03-22 13:02:41 +01:00
|
|
|
property: "{{ wallpaper_property.stdout_lines[0] }}"
|
|
|
|
value_type: string
|
2022-03-21 14:15:40 +01:00
|
|
|
value: "{{ home_directory }}/Pictures/wallpapers/2560x1440.png"
|