Page 1 of 1

[Solved]Programmatically change wall paper

Posted: 12 Apr 2016, 18:11
by Dave99
Hi all

Been pulling my hair out trying to change the wallpaper programmatically.
Using desktop V3.0 (kernel 3.13.6-porteus) and using lxde.

I need to change wallpaper with different SVG images which are dynamically generated.

Any assistance in this regard would be greatly appreciated.
T.I.A.
Dave.

Re: Programmatically change wall paper

Posted: 13 Apr 2016, 23:27
by ncmprhnsbl
a tricky one
some questions:
can you set a .svg wallpaper using pcmanfm(rightclick>desktop settings)?
what's dynamicly generating the images and where are they put?

edit: feh can use .svg ... https://wiki.archlinux.org/index.php/Feh "Note that you need imagemagick "

Re: Programmatically change wall paper

Posted: 14 Apr 2016, 16:37
by Dave99
Hi ncmprhnsbl

Yes I can set a svg using the rightclick--> desktop settings.

The svg's are being generated by a Bash script and I can set them to be put anywhere.

Will look into feh, thank you.

Dave

Re: Programmatically change wall paper

Posted: 14 Apr 2016, 21:36
by ncmprhnsbl
here we go:
"You can change the wallpaper using "pcmanfm --set-wallpaper=" in a terminal"
from http://crunchbang.org/forums/viewtopic.php?id=19901
so something like:
a script that:
1. runs you svg generator every x mins (cron?)
2. runs "pcmanfm --set-wallpaper=/to/your/wallpaper.svg"(or include this in the generator script maybe)

Re: Programmatically change wall paper

Posted: 14 Apr 2016, 22:10
by Dave99
Hi ncmprhnsbl

Fantastic, exactly what I was looking for, a simple solution without the need to download anything else
as feh is not shipped with desktop version by default.

pcmanfm --set-wallpaper /to/your/wallpaper.svg

Many thanks, works a treat.
Dave