Fix wallpaper function — use image path directly

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 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-13 20:23:04 +01:00
parent fc10263e18
commit 55e659716f

View file

@ -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