From 55e659716ff1be6370adda398946a6ead74a60a6 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 13 Apr 2026 20:23:04 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20wallpaper=20function=20=E2=80=94=20use=20?= =?UTF-8?q?image=20path=20directly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wallpaper file is a Home Manager symlink to the Nix store, so cp can't overwrite it. Instead, point GNOME directly at the source image path. Co-Authored-By: Claude Opus 4.6 --- settings/shell.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/settings/shell.nix b/settings/shell.nix index fb8f7bf..4de48ad 100644 --- a/settings/shell.nix +++ b/settings/shell.nix @@ -139,9 +139,8 @@ echo "File not found: $img" return 1 end - cp "$img" ~/.local/share/backgrounds/wallpaper.png - gsettings set org.gnome.desktop.background picture-uri "file://$HOME/.local/share/backgrounds/wallpaper.png" - gsettings set org.gnome.desktop.background picture-uri-dark "file://$HOME/.local/share/backgrounds/wallpaper.png" + gsettings set org.gnome.desktop.background picture-uri "file://$img" + gsettings set org.gnome.desktop.background picture-uri-dark "file://$img" matugen image "$img" --source-color-index 0 -m dark echo "Wallpaper and colors updated!" end