[Solved]Programmatically change wall paper

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Dave99
Black ninja
Black ninja
Posts: 54
Joined: 19 Apr 2014, 20:15
Distribution: Porteus
Location: R.S.A.

[Solved]Programmatically change wall paper

Post#1 by Dave99 » 12 Apr 2016, 18:11

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.
Last edited by Dave99 on 14 Apr 2016, 22:11, edited 1 time in total.

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 851
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Programmatically change wall paper

Post#2 by ncmprhnsbl » 13 Apr 2016, 23:27

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 "
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Dave99
Black ninja
Black ninja
Posts: 54
Joined: 19 Apr 2014, 20:15
Distribution: Porteus
Location: R.S.A.

Re: Programmatically change wall paper

Post#3 by Dave99 » 14 Apr 2016, 16:37

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

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 851
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Programmatically change wall paper

Post#4 by ncmprhnsbl » 14 Apr 2016, 21:36

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)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Dave99
Black ninja
Black ninja
Posts: 54
Joined: 19 Apr 2014, 20:15
Distribution: Porteus
Location: R.S.A.

Re: Programmatically change wall paper

Post#5 by Dave99 » 14 Apr 2016, 22:10

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

Post Reply