customize-xfce-anisble/playbook/roles/role-one/tasks/plank-dock.yml

95 lines
2.6 KiB
YAML
Raw Normal View History

2022-03-11 09:59:12 +01:00
---
- name: Plank Dock | Install plank dock
2022-03-21 14:15:40 +01:00
become: yes
2022-03-11 09:59:12 +01:00
apt:
name:
- plank
state: latest
- name: Plank Dock | Copy plank themes
copy:
src: "{{ home_directory }}/Downloads/WhiteSur-gtk-theme/src/other/plank/"
dest: "{{ home_directory }}/.local/share/plank/themes/"
2022-03-11 09:59:12 +01:00
remote_src: yes
- name: Plank Dock | Copy launchpad icon
2022-03-11 09:59:12 +01:00
copy:
src: "{{ home_directory }}/Downloads/update-xfce-bigsur/icons/launchpad.svg"
dest: "{{ home_directory }}/.local/share/icons/"
2022-03-11 09:59:12 +01:00
remote_src: yes
- name: Plank Dock | Dconf - Set zoom enabled
dconf:
key: /net/launchpad/plank/docks/dock1/zoom-enabled
value: "true"
- name: Plank Dock | Dconf - Set zoom percent
dconf:
key: /net/launchpad/plank/docks/dock1/zoom-percent
value: 130
- name: Plank Dock | Dconf - Set theme
dconf:
key: /net/launchpad/plank/docks/dock1/theme
value: "'theme-dark'"
2022-03-11 09:59:12 +01:00
- name: Plank Dock | Ensure that plank_dock_launcher_path exists
file:
path: "{{ plank_dock_launcher_path }}"
state: directory
- name: Plank Dock | Remove all *.dockitem files
shell:
cmd: "rm -f {{ plank_dock_launcher_path }}/*.dockitem"
- name: Plank Dock | Add launchpad.dockitem to dock
template:
src: launchpad.dockitem
dest: "{{ plank_dock_launcher_path }}/launchpad.dockitem"
- name: Plank Dock | Add org.gnome.Nautilus.dockitem to dock
copy:
src: org.gnome.Nautilus.dockitem
dest: "{{ plank_dock_launcher_path }}/org.gnome.Nautilus.dockitem"
2022-03-11 09:59:12 +01:00
- name: Plank Dock | Add firefox.dockitem to dock
copy:
2022-03-11 09:59:12 +01:00
src: firefox.dockitem
dest: "{{ plank_dock_launcher_path }}/firefox.dockitem"
- name: Plank Dock | Add org.gnome.gedit.dockitem to dock
copy:
src: org.gnome.gedit.dockitem
dest: "{{ plank_dock_launcher_path }}/org.gnome.gedit.dockitem"
- name: Plank Dock | Add org.gnome.Terminal.dockitem to dock
copy:
src: org.gnome.Terminal.dockitem
dest: "{{ plank_dock_launcher_path }}/org.gnome.Terminal.dockitem"
2022-03-11 09:59:12 +01:00
- name: Plank Dock | Add org.gnome.Calculator.dockitem to dock
copy:
src: org.gnome.Calculator.dockitem
dest: "{{ plank_dock_launcher_path }}/org.gnome.Calculator.dockitem"
2022-03-11 09:59:12 +01:00
- name: Plank Dock | Add desktop.dockitem to dock
copy:
2022-03-11 09:59:12 +01:00
src: desktop.dockitem
dest: "{{ plank_dock_launcher_path }}/desktop.dockitem"
- name: Plank Dock | Add trash.dockitem to dock
copy:
2022-03-11 09:59:12 +01:00
src: trash.dockitem
dest: "{{ plank_dock_launcher_path }}/trash.dockitem"
- name: Plank Dock | Ensure autostart directory exists
file:
path: "{{ autostart_path }}"
state: directory
- name: Plank Dock | Add plank to autostart
copy:
2022-03-11 09:59:12 +01:00
src: plank.desktop
dest: "{{ autostart_path }}/plank.desktop"