Wallpaper

The standard theme switcher of LXDE - http://wiki.lxde.org/en/LXAppearance
wallywoo
Posts: 2
Joined: Fri Dec 11, 2009 2:19 pm

Wallpaper

Postby wallywoo » Fri Dec 11, 2009 2:24 pm

Kde automatically changes the wallpaper, selecting jpeg files that have been placed in a directory, any change of LXDE doing that?
Thanks

maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Wallpaper

Postby maces » Fri Dec 11, 2009 8:25 pm

Hi,

this is currently not possible, afaik.

maces

ctassell
Posts: 2
Joined: Thu Nov 25, 2010 3:42 pm

Re: Wallpaper

Postby ctassell » Thu Nov 25, 2010 3:49 pm

I wrote the following script this morning to do the same thing. Here is the script (change the Folder and sleepTime settings as needed)

Code: Select all

#!/bin/bash

Folder=~/wallpaper/
sleepTime=3m
pid=$(ps xc |grep lxsession |awk ' { print $1 }')

while [ $(ps xc |grep lxsession |awk ' { print $1 }') == "$pid" ]; do
   file=$(find "$Folder" -maxdepth 1 -type f |shuf |head -n 1)
   echo $file >/tmp/curWallPaperName.txt
   pcmanfm -w "$file" --wallpaper-mode=fit
   sleep "$sleepTime"
done


Then copy this into your ~/.config/autostart dir and enable it on startup with Preferences->Desktop Session Settings. Don't forget to update the path on the Exec line

Code: Select all

[Desktop Entry]
Type=Application
Exec=~/lxde-wallpaper-rotate.sh
Hidden=false
Terminal=False
StartupNotify=False
Version=0.9.4
Encoding=UTF-8
Name=lxde-wallpaper-rotate.sh


Note, the script needs to be executable. So chmod 755 <filename>

Hope that helps.

StephenH
Posts: 4
Joined: Wed Feb 01, 2012 2:32 pm

Re: Wallpaper

Postby StephenH » Wed Feb 01, 2012 2:51 pm

Thank you. This was the final step I needed to complete the switchover from XFCE to LXDE. It would be really nice if this were a tool available for everyone.

I changed the wallpaper folder to one that contains pictures and the timing to every 15 minutes.

I have one minor problem though. How do I get the picture to fill the screen. Changing "fit" to "fill" does not do it. This is a wide-screen display, and it currently displays the picture with black bars on either side.

Edit:

Disregard. I found the information. The options are: (color|stretch|fit|center|tile). :D

Further Edit:

The option (scale) works also and has the advantage of not distorting pictures. However, the tradeoff is it is cropped on the top and bottom some. Many times, that is not an issue. and pictures of people look better when they are not stretched horizontally. :D

tooboku
Posts: 1
Joined: Mon Feb 27, 2012 4:25 pm

Re: Wallpaper

Postby tooboku » Mon Feb 27, 2012 4:31 pm

This is probably irrelevant but if you open any other processes with lxsession in its name while this script isn't sleeping, it will crash at the while loop.
FYI in case you were testing this with a small sleep time and you had lxsession-edit open.

It's a nice script though. Thanks for posting. Using it without a hitch now.


Return to “LXAppearance”

Who is online

Users browsing this forum: No registered users and 1 guest