2024-10-15 20:56:26 +02:00
|
|
|
---
|
2024-10-16 08:54:51 +02:00
|
|
|
- name: Plasma | Remove previously set wallpapers
|
|
|
|
ansible.builtin.shell: |
|
|
|
|
kwriteconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group 1 --group Wallpaper --group org.kde.image --group General --key Image --delete
|
|
|
|
kwriteconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group 1 --group Wallpaper --group org.kde.image --group General --key FillMode --delete
|
|
|
|
kwriteconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group 2 --group Wallpaper --group org.kde.image --group General --key Image --delete
|
|
|
|
kwriteconfig6 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc --group Containments --group 1 --group Wallpaper --group org.kde.image --group General --key FillMode --delete
|
|
|
|
tags: config
|
2024-10-16 08:44:52 +02:00
|
|
|
|
2024-10-16 08:19:53 +02:00
|
|
|
- name: Plasma | Set desktop wallpaper
|
2024-10-15 20:56:26 +02:00
|
|
|
ansible.builtin.shell: |
|
2024-10-16 08:54:51 +02:00
|
|
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
|
|
|
|
desktops().forEach((d) => {
|
|
|
|
d.currentConfigGroup = [
|
|
|
|
'Wallpaper',
|
|
|
|
'org.kde.image',
|
|
|
|
'General',
|
|
|
|
]
|
|
|
|
d.writeConfig('Image', '{{ background_image }}')
|
|
|
|
d.writeConfig('FillMode', '1')
|
|
|
|
d.reloadConfig()
|
|
|
|
})
|
|
|
|
"
|
2024-10-16 08:23:03 +02:00
|
|
|
tags: config
|
2024-10-15 20:56:26 +02:00
|
|
|
|
2024-10-16 08:19:53 +02:00
|
|
|
- name: Plasma | Set Lockscreen wallpaper
|
2024-10-15 20:56:26 +02:00
|
|
|
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 }}'
|
2024-10-16 08:16:15 +02:00
|
|
|
kwriteconfig6 --file ~/.config/kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key FillMode '1'
|
2024-10-16 08:23:03 +02:00
|
|
|
tags: config
|