Use wallpaper in $XDG_DATA_HOME for Gnome and Plasma
This commit is contained in:
parent
6a527430b6
commit
854a6a30c7
3 changed files with 8 additions and 1 deletions
|
@ -151,7 +151,9 @@ set_misc_preferences () {
|
|||
|
||||
# Remove the wallpaper.
|
||||
gsettings set org.gnome.desktop.background color-shading-type 'solid'
|
||||
gsettings set org.gnome.desktop.background picture-options 'none'
|
||||
gsettings set org.gnome.desktop.background picture-options 'zoom'
|
||||
gsettings set org.gnome.desktop.background picture-uri "file://$XDG_DATA_HOME/wallpaper.svg"
|
||||
gsettings set org.gnome.desktop.background picture-uri-dark "file://$XDG_DATA_HOME/wallpaper.svg"
|
||||
gsettings set org.gnome.desktop.background primary-color '#101010'
|
||||
gsettings set org.gnome.desktop.background secondary-color '#101010'
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ then
|
|||
rm -f "$XDG_CONFIG_HOME/plasma-org.kde.plasma.desktop-appletsrc"
|
||||
cp "$XDG_CONFIG_HOME/plasma-org.kde.plasma.desktop-appletsrc.acp" "$XDG_CONFIG_HOME/plasma-org.kde.plasma.desktop-appletsrc"
|
||||
fi
|
||||
plasma-apply-wallpaperimage "$XDG_DATA_HOME/wallpaper.svg"
|
||||
kwriteconfig5 --file kdeglobals --group KDE --key SingleClick false
|
||||
kwriteconfig5 --file kwinrc --group NightColor --key Active true
|
||||
kwriteconfig5 --file kwinrc --group Desktops --key Id_1 16b2b027-cd5a-48fa-9bd5-c1f0f4f9e550
|
||||
|
|
|
@ -58,3 +58,7 @@
|
|||
ansible.builtin.copy:
|
||||
src: "picom.conf"
|
||||
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/picom.conf"
|
||||
- name: Create $XDG_DATA_HOME/wallpaper.svg
|
||||
ansible.builtin.copy:
|
||||
src: "wallpaper.svg"
|
||||
dest: "{{ ansible_env.XDG_DATA_HOME }}/wallpaper.svg"
|
||||
|
|
Loading…
Reference in a new issue