Programmatically changing wallpaper

killermoehre killermoehre at gmx.net
Tue May 29 20:25:49 CEST 2012


Am 29.05.2012 19:27, schrieb hha4491:
> Hi Brian,
>> I've tried doing a grep from / downwards on
>> my PC looking for a file containing the name of the wallpaper that I
>> currently use, but there were no matches.
> on my PC it's in
> ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

Please, don't alter this file directly, it wouldn't work. If you want to
change your background per script, use »xfconf-query -c xfce4-desktop -p
/backdrop/screen0/monitor0/image-path -s <file>«, or update to 4.10.

I added some tiny bash script (tiny := code < gpl header) which should
work. Help for improving is appreciated.

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: random-wallpaper.sh
Type: application/x-shellscript
Size: 1356 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20120529/9758396b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20120529/9758396b/attachment.pgp>


More information about the Xfce mailing list