30 lines
1.7 KiB
YAML
30 lines
1.7 KiB
YAML
---
|
|
- 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
|
|
|
|
- name: Plasma | Set desktop wallpaper
|
|
ansible.builtin.shell: |
|
|
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.reloadConfig()
|
|
})
|
|
"
|
|
tags: config
|
|
|
|
- name: Plasma | Set Lockscreen wallpaper
|
|
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 }}'
|
|
tags: config
|