LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing Wallpaper from Command Line (https://www.linuxquestions.org/questions/linux-general-1/changing-wallpaper-from-command-line-198158/)

b_suny 06-26-2004 09:56 PM

Changing Wallpaper from Command Line
 
How do I change the Wallpaper / Desktop Image in RHL 9.0 from Command Line ?

mikshaw 06-26-2004 11:00 PM

It would depend on what application(s) you have which are capable of setting root images.
Some examples are Esetroot, xv, feh, xsri, and display.

spacedoubtman 06-27-2004 05:52 AM

I use wmsetbg - it supports jpegs. Not that all others don't, but some don't.

Heres a quick and nasty script I use to kindof randomly change my wallpaper every 10 mins if your interested.


Code:

#!/usr/bin/perl

$num = `date +%s | tail -c 3`;

while (1)
{
        foreach $file (`find /mnt/c/Wallpapers /usr/share/wallpapers /home/i/dl/done/Backgrounds -type f -exec ls -b \{\} \
\;`)
        {
                if($num < 2)
                {
                        $num = `date +%S | tail -c 3`;
                        print "\n---------\n" . $file . "\n";
                        print `/usr/bin/wmsetbg $file`;
                        print `/bin/sleep 600`;
                }
                else
                {
                        $num = $num - 1;
                }
        }
}



All times are GMT -5. The time now is 09:16 PM.