diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 87ba3b6..2845051 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -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' diff --git a/roles/home-gui/files/kde-setup.sh b/roles/home-gui/files/kde-setup.sh index efef646..c3ae7f8 100644 --- a/roles/home-gui/files/kde-setup.sh +++ b/roles/home-gui/files/kde-setup.sh @@ -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 diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index d8f6cc9..2448989 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -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"