2021-11-27 05:53:58 +00:00
|
|
|
- name: Install KDE
|
2023-06-13 05:04:39 +00:00
|
|
|
ansible.builtin.apt:
|
2021-11-27 05:53:58 +00:00
|
|
|
name: kde-standard
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
2021-11-28 04:31:33 +00:00
|
|
|
|
|
|
|
- name: Create autostart-scripts directory
|
2023-07-18 05:29:21 +00:00
|
|
|
ansible.builtin.file:
|
2021-12-09 01:02:49 +00:00
|
|
|
path: "{{ homedir }}/.config/autostart-scripts/"
|
2021-11-28 04:31:33 +00:00
|
|
|
state: directory
|
2021-12-09 01:02:49 +00:00
|
|
|
owner: "{{ item.name }}"
|
|
|
|
group: "{{ item.name }}"
|
2023-07-18 05:29:21 +00:00
|
|
|
mode: 0700
|
2021-11-28 04:31:33 +00:00
|
|
|
loop: "{{ users }}"
|
2023-07-11 07:13:43 +00:00
|
|
|
when: manage_gui
|
2021-11-28 04:31:33 +00:00
|
|
|
|
|
|
|
- name: Enable KDE dark theme
|
2023-07-18 05:29:21 +00:00
|
|
|
ansible.builtin.copy:
|
2021-12-09 01:02:49 +00:00
|
|
|
dest: "{{ homedir }}/.config/autostart-scripts/darkmode.sh"
|
2021-11-28 04:31:33 +00:00
|
|
|
mode: a+x
|
|
|
|
content: |
|
|
|
|
#!/bin/bash
|
|
|
|
if ! grep -q "ColorScheme=BreezeDark" ~/.config/kdeglobals; then
|
|
|
|
lookandfeeltool -a $(lookandfeeltool --list | grep dark)
|
|
|
|
fi
|
|
|
|
loop: "{{ users }}"
|
2023-07-11 07:13:43 +00:00
|
|
|
when: manage_gui and darkmode
|
2021-12-06 05:57:07 +00:00
|
|
|
|
|
|
|
- name: Install sqlite3
|
2023-06-13 05:04:39 +00:00
|
|
|
ansible.builtin.apt:
|
2021-12-06 05:57:07 +00:00
|
|
|
name: sqlite3
|
|
|
|
state: present
|
2023-07-11 07:13:43 +00:00
|
|
|
when: manage_gui and favorites is defined or pinned is defined
|
2021-12-06 05:57:07 +00:00
|
|
|
|
|
|
|
- name: Change favorites menu
|
2023-06-13 05:04:39 +00:00
|
|
|
ansible.builtin.template:
|
2021-12-06 05:57:07 +00:00
|
|
|
src: favorites.sh.j2
|
2021-12-09 01:02:49 +00:00
|
|
|
dest: "{{ homedir }}/.config/autostart-scripts/favorites.sh"
|
2021-12-06 05:57:07 +00:00
|
|
|
mode: a+x
|
|
|
|
loop: "{{ users }}"
|
2023-07-11 07:13:43 +00:00
|
|
|
when: manage_gui and favorites is defined
|
2023-06-13 05:04:39 +00:00
|
|
|
|
|
|
|
- name: Change task manager pinned apps
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: pinnedapps.sh.j2
|
|
|
|
dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
|
|
|
|
mode: a+x
|
|
|
|
loop: "{{ users }}"
|
2023-07-11 07:13:43 +00:00
|
|
|
when: manage_gui and pinned is defined
|