Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Lubuntu Wallpaper Changer

  1. #11
    Join Date
    May 2006
    Location
    Brighton, UK.
    Beans
    108
    Distro
    Lubuntu

    Re: Lubuntu Wallpaper Changer

    I have an alternative script for anyone interested. Adapted from the script I used to use with gnome, with help from the script's original author mhgsys.
    Code:
    #!/bin/bash
    until [ 1 -eq 2 ]; do
    
    # Script to randomly set Background from files in a directory
    
    # Directory Containing Pictures
    DIR="/home/tv/Public/Wallpaper"
    
    # Command to Select a random jpg file from directory
    # Delete the *.jpg to select any file but it may return a folder
    PIC=$(ls $DIR/*.jpg | shuf -n1)
    
    # Command to set Background Image
    pcmanfm --set-wallpaper=$PIC
    
    sleep 30s
    done

  2. #12
    Join Date
    Jul 2010
    Location
    New Jersey
    Beans
    167
    Distro
    Lubuntu

    Re: Lubuntu Wallpaper Changer

    This script works beautifully, thank you for the help this addresses the two biggest problems I've had one the filename and two the filetype. Thank you, I'm sure this will help many Lubuntu users who see this.

    Love the avi BTW.

  3. #13
    Join Date
    Feb 2012
    Beans
    1

    Re: Lubuntu Wallpaper Changer

    Yeuh I like this, I new make ubuntu thanks

  4. #14
    Join Date
    May 2006
    Location
    Brighton, UK.
    Beans
    108
    Distro
    Lubuntu

    Re: Lubuntu Wallpaper Changer

    This works fine with 12.04 and I have added the commands to set the wallpaper mode as well!
    Code:
    #!/bin/bash
    until [ 1 -eq 2 ]; do
    
    # Script to randomly set Background from files in a directory
    
    # Directory Containing Pictures
    DIR="/home/tv/Public/Wallpaper"
    
    # Command to Select a random jpg file from directory
    # Delete the *.jpg to select any file but it may return a folder
    PIC=$(ls $DIR/*.jpg | shuf -n1)
    
    # Command to set Background Image
    # Set mode of desktop wallpaper. <mode>=(color|stretch|fit|center|tile)
    #  --wallpaper-mode=fit
    pcmanfm --set-wallpaper=$PIC --wallpaper-mode=fit
    
    sleep 30s
    done

  5. #15

    Re: Lubuntu Wallpaper Changer

    I suggest you try Variety Wallpaper Changer - it is a new application that I've been working on during the past 2-3 months and I think it is shaping as one of the best wallpaper changers for Linux. Response from users so far has been vastly positive.

    Current version in the ppa (0.4.7) supports Lubuntu out-of-the-box.

    Supports local folders, online sources (Flickr, Wallbase and several others), can apply some nice filters to the images (e.g. heavy blurring for obtaining abstract blurry wallpapers in the spirit of the default one in Ubuntu).

    Video demo for 0.4.3
    Screenshots
    Project page and source-code

    Installation (installs in /opt):
    Code:
    sudo add-apt-repository ppa:peterlevi/ppa
    sudo apt-get update 
    sudo apt-get install variety
    Or simply grab the latest deb from here

    The version in Ubuntu Software Center (0.3.9) is outdated and does not work in Lubuntu.
    Last edited by xfctr; August 16th, 2012 at 10:32 AM.

  6. #16
    Join Date
    Sep 2010
    Location
    Central Calif
    Beans
    1,208
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Lubuntu Wallpaper Changer

    Quote Originally Posted by xfctr View Post
    I suggest you try Variety Wallpaper Changer - it is a new application that I've been working on during the past 2-3 months and I think it is shaping as one of the best wallpaper changers for Linux. Response from users so far has been vastly positive.

    Current version in the ppa (0.4.7) supports Lubuntu out-of-the-box.

    Supports local folders, online sources (Flickr, Wallbase and several others), can apply some nice filters to the images (e.g. heavy blurring for obtaining abstract blurry wallpapers in the spirit of the default one in Ubuntu).

    Video demo for 0.4.3
    Screenshots
    Project page and source-code


    Installation (installs in /opt):
    Code:
    sudo add-apt-repository ppa:peterlevi/ppa
    sudo apt-get update 
    sudo apt-get install variety
    Or simply grab the latest deb from here

    The version in Ubuntu Software Center (0.3.9) is outdated and does not work in Lubuntu.
    In the last two days I've installed Variety to two computers. It was easy to install and set up, and the wallpapers change just like they're supposed to. Good work!!

    Only one thing. I chose to add the clock and I like it, but I can't find the edit page to change it from 12 hour to 24 hour.

    I'm back for the addy so I can install to another machine now. Guess I need to bookmark it. lol
    Remember When Double-Dog dare ya's and water balloons were the ultimate weapon?

  7. #17
    Join Date
    Jun 2007
    Location
    Arizona, USA
    Beans
    223
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Lubuntu Wallpaper Changer

    Quote Originally Posted by xfctr View Post
    I suggest you try Variety Wallpaper Changer - it is a new application that I've been working on during the past 2-3 months and I think it is shaping as one of the best wallpaper changers for Linux. Response from users so far has been vastly positive.

    Current version in the ppa (0.4.7) supports Lubuntu out-of-the-box.

    Supports local folders, online sources (Flickr, Wallbase and several others), can apply some nice filters to the images (e.g. heavy blurring for obtaining abstract blurry wallpapers in the spirit of the default one in Ubuntu).

    Video demo for 0.4.3
    Screenshots
    Project page and source-code

    Installation (installs in /opt):
    Code:
    sudo add-apt-repository ppa:peterlevi/ppa
    sudo apt-get update 
    sudo apt-get install variety
    Or simply grab the latest deb from here

    The version in Ubuntu Software Center (0.3.9) is outdated and does not work in Lubuntu.
    Thank you very much! This is a great addition to Lubuntu - it's great!
    The future will soon be a thing of the past.

  8. #18

    Re: Lubuntu Wallpaper Changer

    Thanks guys for the nice words about Variety, it's always great to hear feedback from the users.

    Quote Originally Posted by critin View Post
    Only one thing. I chose to add the clock and I like it, but I can't find the edit page to change it from 12 hour to 24 hour.
    I have just created a FAQ about editing clock settings, it answers your question about 12/24-hour format: click here

  9. #19
    Join Date
    Jul 2010
    Location
    New Jersey
    Beans
    167
    Distro
    Lubuntu

    Re: Lubuntu Wallpaper Changer

    Hey guys me again been working on integrating a Previous Wallpaper option into Openbox, cuz why not....

    Got some stuff going if anyone wants to help though it would be greatly appreciated.

    Code:
    #!/bin/bash
    DIR="/home/bewbman/Pictures/Wallpapers"
    declare -i x
    declare -i y
    if [ $[x] = "1" ];
    then
    # Delete the *.jpg to select any file but it may return a folder
    PIC=$(ls $DIR/*.jpg | shuf -n1)
    pcmanfm --set-wallpaper=$PIC
    echo $PIC
    while read line; do 
    y=$line+1
    done < /home/bewbman/Documents/Scripts/number2.txt
    echo $y > /home/bewbman/Documents/Scripts/number2.txt
    if [ $[$y % 2] = "0" ];
    then
    echo $PIC > /home/bewbman/Documents/Scripts/number.txt
    echo $y
    fi
    fi
    if [ $[x] = "2" ];
    then
    while read line; do 
    PIC=$line
    done < /home/bewbman/Documents/Scripts/number.txt
    pcmanfm --set-wallpaper=$PIC
    fi
    Basically it would set X as 1 for clicking 'Next Wallpaper' through Openbox and X as 2 for clicking 'Previous Wallpaper' when you click Next Wallpaper it'll store the value of the wallpaper you go to every other time, allowing for you to revert back to the previous one if you chose to.

    However there are problems with this script which is what I'm currently working on...for the hell of it. One being that clicking 'Previous Wallpaper' more than once results in well nothing happening because it doesn't store multiple values. One thing I want is for there to be a log of all the wallpapers I switch to and for me to be able to keep going back until I go to the first one in the log where it tells me that. If I click next after say 5 times of going back I want it to clear everything ahead of it, so the 4 wallpapers you just hit previous on would be removed from the log.

    Any help would be greatly appreciated as I'm fairly new to Bash scripting in general and don't often do it.

Page 2 of 2 FirstFirst 12

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
  •