From b48756cbaf581ce46950b815f7ad041a5d584463 Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 16 Oct 2024 08:16:15 +0200 Subject: [PATCH] Handle fill mode with white background --- host_vars/NB-XKJIMECZ.yml | 3 ++ roles/config/tasks/main.yml | 56 +++++++++++++++++++++-------------- roles/config/tasks/plasma.yml | 2 ++ 3 files changed, 38 insertions(+), 23 deletions(-) diff --git a/host_vars/NB-XKJIMECZ.yml b/host_vars/NB-XKJIMECZ.yml index 3810c9a6..f758ccd8 100644 --- a/host_vars/NB-XKJIMECZ.yml +++ b/host_vars/NB-XKJIMECZ.yml @@ -3,5 +3,8 @@ additional_pacman_packages: - mattermost-desktop - wireguard-tools #additional_aur_packages: +# - virter ssh_key_git: "{{ ansible_user_dir }}/.ssh/id_ed25519" + +background_image: "{{ ansible_user_dir }}/Bilder/Art Print - Inked Pink Mizuchi Dragon Painting.jpg" diff --git a/roles/config/tasks/main.yml b/roles/config/tasks/main.yml index 6d7f2336..6d4bb4c7 100644 --- a/roles/config/tasks/main.yml +++ b/roles/config/tasks/main.yml @@ -112,23 +112,48 @@ mode: "0755" tags: config -- name: Reload user systemd services - ansible.builtin.systemd_service: - daemon_reload: true - scope: user - tags: services - - name: Reload system systemd services ansible.builtin.systemd_service: daemon_reload: true become: true tags: services -- name: Enable fstrim +- name: Reload user systemd services ansible.builtin.systemd_service: - name: fstrim.timer + daemon_reload: true + scope: user + tags: services + +- name: Enable system services + ansible.builtin.systemd_service: + name: "{{ item }}" state: "started" enabled: true + loop: + - "fstrim.timer" + - "bluetooth.service" + - "sddm.service" + become: true + tags: services + +- name: Enable user services + ansible.builtin.systemd_service: + name: "{{ item }}" + state: "restarted" + enabled: true + scope: user + loop: + - "ssh-agent.service" + tags: services + +- name: Start system services + ansible.builtin.systemd_service: + name: "{{ item }}" + state: "started" + enabled: true + loop: + - "fstrim.timer" + - "bluetooth.service" become: true tags: services @@ -179,21 +204,6 @@ become: true tags: services -- name: Enable ssh-agent - ansible.builtin.systemd_service: - name: ssh-agent - state: "restarted" - enabled: true - scope: user - tags: services - -- name: Enable sddm - ansible.builtin.systemd_service: - name: sddm - enabled: true - become: true - tags: services - - name: Add group for libvirt ansible.builtin.user: name: "{{ ansible_user_id }}" diff --git a/roles/config/tasks/plasma.yml b/roles/config/tasks/plasma.yml index eae2595f..3eaf2e87 100644 --- a/roles/config/tasks/plasma.yml +++ b/roles/config/tasks/plasma.yml @@ -9,6 +9,7 @@ 'General', ] d.writeConfig('Image', 'file://{{ background_image }}') + d.writeConfig('FillMode', '1') d.reloadConfig() }) " @@ -17,3 +18,4 @@ ansible.builtin.shell: | kwriteconfig6 --file ~/.config/kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key Image '{{ background_image }}' kwriteconfig6 --file ~/.config/kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key PreviewImage '{{ background_image }}' + kwriteconfig6 --file ~/.config/kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key FillMode '1'