---
- name: Copy MATE panel layout
become: true
copy:
src: mate-acp.layout
dest: "{{ prefix }}/share/mate-panel/layouts/acp.layout"
vars:
prefix: "{{ '/usr/local' if ansible_distribution == 'FreeBSD' else '/usr' }}"
- name: Set default panel layout
dconf:
key: /org/mate/panel/general/default-layout
value: "'acp'"
register: layout_changed
ignore_errors: yes
- name: Reset panel
command: mate-panel --reset || true
when: layout_changed.changed
ignore_errors: yes
changed_when: false
- name: Add cities to clock applet
dconf:
key: /org/mate/panel/objects/clock/prefs/cities
value: ['', '', '', '']
- name: Set workspace switcher to two rows
dconf:
key: /org/mate/panel/objects/workspace-switcher/prefs/num-rows
value: 2
- name: Expand locations in clock
dconf:
key: /org/mate/panel/objects/clock/prefs/expand-locations
value: 'true'