Handle fill mode with white background

This commit is contained in:
exu 2024-10-16 08:16:15 +02:00
parent d51ca11ac0
commit b48756cbaf
3 changed files with 38 additions and 23 deletions

View File

@ -3,5 +3,8 @@ additional_pacman_packages:
- mattermost-desktop - mattermost-desktop
- wireguard-tools - wireguard-tools
#additional_aur_packages: #additional_aur_packages:
# - virter
ssh_key_git: "{{ ansible_user_dir }}/.ssh/id_ed25519" ssh_key_git: "{{ ansible_user_dir }}/.ssh/id_ed25519"
background_image: "{{ ansible_user_dir }}/Bilder/Art Print - Inked Pink Mizuchi Dragon Painting.jpg"

View File

@ -112,23 +112,48 @@
mode: "0755" mode: "0755"
tags: config tags: config
- name: Reload user systemd services
ansible.builtin.systemd_service:
daemon_reload: true
scope: user
tags: services
- name: Reload system systemd services - name: Reload system systemd services
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
daemon_reload: true daemon_reload: true
become: true become: true
tags: services tags: services
- name: Enable fstrim - name: Reload user systemd services
ansible.builtin.systemd_service: 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" state: "started"
enabled: true 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 become: true
tags: services tags: services
@ -179,21 +204,6 @@
become: true become: true
tags: services 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 - name: Add group for libvirt
ansible.builtin.user: ansible.builtin.user:
name: "{{ ansible_user_id }}" name: "{{ ansible_user_id }}"

View File

@ -9,6 +9,7 @@
'General', 'General',
] ]
d.writeConfig('Image', 'file://{{ background_image }}') d.writeConfig('Image', 'file://{{ background_image }}')
d.writeConfig('FillMode', '1')
d.reloadConfig() d.reloadConfig()
}) })
" "
@ -17,3 +18,4 @@
ansible.builtin.shell: | 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 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 PreviewImage '{{ background_image }}'
kwriteconfig6 --file ~/.config/kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key FillMode '1'