Page 1 of 2 12 LastLast
Results 1 to 10 of 30

Thread: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Beans
    183

    Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Wallpaper changers on lxde or lubuntu are nice to have but tough to find, particularly if you are trying to stay lightweight. Usually wallpaper changers don't usually work because they aren't compatible with pcmanfm.

    So after searching the Internet for quite some time and fiddling around I came up with a super easy, simple way to have a wallpaper changer on lxde / lubuntu without using any memory or complicated scripts or programs.

    I tried the wallpaper changer called variety which i found on these forums... however it didn't work for me but also upon launch it was using about 40 megs of ram on my system just to change the wallpaper... not exactly lightweight, and it was always running in the background.

    I've also looked at some scripts and while they do work they are more complicated then they need to be... although i will say that they usually provide some type of timer wallpaper change feature, which this solution does not... however you'll see it really doesn't matter.

    Ok here we go.

    First lets make a desktop icon.

    To create a desktop icon right click on the desktop and create a blank file. Name the file whatever you want just end it with .desktop I usually name the icon randomwallpaper.desktop

    Once the file is created right click on it and open it with leafpad.

    Copy and paste the following code in it

    Code:
    [Desktop Entry]
    Version=1.0
    Name=Random Wallpaper
    Comment=Randomly change LXDE wallpaper.
    Exec=bash -c 'pcmanfm -w "$(find ~/Pictures/Wallpapers -type f | shuf -n1)"'
    Terminal=false
    Type=Application
    Categories=Utility;
    Icon=wallpaper
    Once the code is pasted close and save it.

    Now I'm going to assume your new icon is on the desktop

    We will place this icon in two place...

    One in your autostart folder (which provide a random background on startup)

    And the other one will go in your applications folder (which will provide access to it through your accessories menu.)

    Open your terminal and enter these commands

    cd Desktop
    cp randomdesktop.desktop ~/.config/autostart
    sudo mv randomdesktop.desktop /usr/share/applications

    Open up desktop session settings (preferences menu) and make sure the Random Desktop icon is checked if you want it to change your desktop background on startup.

    Finally and important... create a folder named Wallpapers inside your Pictures folder and place your desktop backgrounds in there..

    Now whenever your computer starts it changes the background and if you want to change it yourself you can select random wallpaper from the accessories menu and it will switch it instantly.

    This is an excellent no memory usage, super easy wallpaper changer solution without involving complicated scripts or heavy programs.



    CAUTION: This has only been test on Lubuntu 12.04

    *****
    I will be providing a series of easy solutions and linking to them below

    lxde simple weather

    aero snap for lubuntu
    expose feature for lubuntu
    Last edited by ronniew; October 26th, 2012 at 07:46 AM.

  2. #2
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    13,647
    Distro
    Xubuntu

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Thanks, but please post these guides in
    https://help.ubuntu.com/community/Lubuntu/Documentation
    in order to have everything in one place.

    We are trying to move stuff of long-time value to the wiki and use the forum mainly for support questions.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

  3. #3
    Join Date
    Dec 2008
    Location
    Northwest Ohio
    Beans
    1,581
    Distro
    Lubuntu 13.10 Saucy Salamander

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Thanks for the tip.

    Unfortunately I am unable to use it in a stock Lubuntu 12.10 because I am affected by a bug in pcmanfm 1.0.1-0ubuntu1, where pcmanfm refuses to launch after setting the wallpaper by command. The latest git version 1.0.2-alpha1 fixes the bug though, which I was able to temporarily test on a non-persistant liveusb. Bug: http://sourceforge.net/tracker/?func...56&atid=801864
    Last edited by ankspo71; October 28th, 2012 at 04:48 PM.

  4. #4
    Join Date
    Aug 2005
    Beans
    183

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    i reported that bug early on, glad to see its been fixed in the latest build

    which you might be able to get from here

    https://launchpad.net/ubuntu/+source/pcmanfm

  5. #5
    Join Date
    Jan 2013
    Beans
    1

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Quote Originally Posted by ankspo71 View Post
    Unfortunately I am unable to use it in a stock Lubuntu 12.10 because I am affected by a bug in pcmanfm 1.0.1-0ubuntu1, where pcmanfm refuses to launch after setting the wallpaper by command.
    I had the same problem but noticed that pcmanfm would still start from a shortcut to a folder, but wouldn't start from it's base application. It meant that I could easily start it up with a shortcut to the home folder on the desktop, but the application launch bar shortcut didn't work.

    You can fix that by editing the desktop configuration file for the PCManFM application to direct it to open to a specific file.

    To do this, open the terminal and type the following:
    cd usr/share/applications
    sudo leafpad pcmanfm.desktop

    Now scroll down and find the line:
    Exec=pcmanfm %U

    Here you need to change the "%U" to your preferred default folder. I use /home/malwiggin so the line reads:
    Exec=pcmanfm /home/malwiggin

    Save the file, and your File Manager should start as normal now.

  6. #6
    Join Date
    Sep 2011
    Beans
    28

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    For an automatic wallpaper rotator (slide show) script, rather than just a changer, see
    http://lxlinux.com/#5.

  7. #7
    Join Date
    Jan 2013
    Beans
    5

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Quote Originally Posted by ankspo71 View Post
    Thanks for the tip.

    Unfortunately I am unable to use it in a stock Lubuntu 12.10 because I am affected by a bug in pcmanfm 1.0.1-0ubuntu1, where pcmanfm refuses to launch after setting the wallpaper by command. The latest git version 1.0.2-alpha1 fixes the bug though, which I was able to temporarily test on a non-persistant liveusb. Bug: http://sourceforge.net/tracker/?func...56&atid=801864
    Yeah mine too. So I had to remove this, too bad, it was kinda cool.

  8. #8
    Join Date
    Jul 2012
    Beans
    Hidden!

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Thanks for this thread.

  9. #9
    Join Date
    Sep 2008
    Beans
    1

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Thanks very much for this nice tutorial!
    The only thing is that the manual switching via the menu is not always reacting, any clue why?

  10. #10
    Join Date
    Aug 2005
    Beans
    183

    Re: Super simple lxde lubuntu wallpaper changer, no memory usage, no crazy scripts

    Quote Originally Posted by xfctr View Post
    and being heavy on resources, neither of which is true.
    I guess I'm old school, anything over 10 megs for a wallpaper changer seems crazy. (in truth anything over 5)

    In my mind ram is the single most valuable resource in your computer that you actually have quite a bit of control over. There has never been a time that saving as much ram as possible wasn't a good thing.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •