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:
parent
fc10263e18
commit
55e659716f
1 changed files with 2 additions and 3 deletions
|
|
@ -139,9 +139,8 @@
|
||||||
echo "File not found: $img"
|
echo "File not found: $img"
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
cp "$img" ~/.local/share/backgrounds/wallpaper.png
|
gsettings set org.gnome.desktop.background picture-uri "file://$img"
|
||||||
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://$img"
|
||||||
gsettings set org.gnome.desktop.background picture-uri-dark "file://$HOME/.local/share/backgrounds/wallpaper.png"
|
|
||||||
matugen image "$img" --source-color-index 0 -m dark
|
matugen image "$img" --source-color-index 0 -m dark
|
||||||
echo "Wallpaper and colors updated!"
|
echo "Wallpaper and colors updated!"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue