Jake Howard
998e2834b0
It doesn't quite work as expected. It seems to only detect DNS requests for apps, which is kinda useless
42 lines
967 B
YAML
42 lines
967 B
YAML
- name: "Install autostart-related packages"
|
|
aur:
|
|
skip_installed: true
|
|
name: "{{ item }}"
|
|
become: true
|
|
become_user: aur_builder
|
|
when: "item not in installed_packages.stdout_lines"
|
|
with_items:
|
|
- 'dex'
|
|
|
|
- name: "Create autostart directory"
|
|
file:
|
|
path: '{{ home }}/.config/autostart'
|
|
state: directory
|
|
owner: "{{ user }}"
|
|
mode: 0755
|
|
|
|
- name: "Autostart services"
|
|
file:
|
|
src: "/etc/xdg/autostart/{{ item }}.desktop"
|
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
|
mode: 0644
|
|
owner: "{{ user }}"
|
|
state: link
|
|
force: true
|
|
with_items:
|
|
- 'pulseaudio'
|
|
- 'nm-applet'
|
|
- 'lxqt-policykit-agent'
|
|
- 'solaar'
|
|
|
|
- name: "Autostart applications"
|
|
file:
|
|
src: "/usr/share/applications/{{ item }}.desktop"
|
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
|
mode: 0644
|
|
owner: "{{ user }}"
|
|
state: link
|
|
force: true
|
|
with_items:
|
|
- 'flameshot'
|
|
- 'libinput-gestures'
|