diff --git a/inventory.yml b/inventory.yml index d345575..e42a341 100644 --- a/inventory.yml +++ b/inventory.yml @@ -1,2 +1,5 @@ # Settings convenient for development in vagrant development: true + +users: + - name: vagrant diff --git a/roles/common/tasks/gui.yml b/roles/common/tasks/gui.yml index dab65d4..f436068 100644 --- a/roles/common/tasks/gui.yml +++ b/roles/common/tasks/gui.yml @@ -3,3 +3,20 @@ name: kde-standard state: present update_cache: true + +- name: Create autostart-scripts directory + file: + path: "/home/{{ item.name }}/.config/autostart-scripts/" + state: directory + loop: "{{ users }}" + +- name: Enable KDE dark theme + copy: + dest: "/home/{{ item.name }}/.config/autostart-scripts/darkmode.sh" + mode: a+x + content: | + #!/bin/bash + if ! grep -q "ColorScheme=BreezeDark" ~/.config/kdeglobals; then + lookandfeeltool -a $(lookandfeeltool --list | grep dark) + fi + loop: "{{ users }}"