Results 1 to 5 of 5

Thread: A live wallpaper?!

  1. #1
    Join Date
    Jul 2011
    Location
    In a bad world!
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    A live wallpaper?!

    Guys! I'm very excited about this! I just wrote a simple program which generates random numbers and random spaces and keeps moving ( like one of those things you saw in the matrix and numerous other movies, but you always knew what a piece of crap! )

    Anyway, I actually kept staring at the beautiful effect it created for at least a minute!

    Guys, any idea how do I make this as wallpaper?! Like a live wallpaper with all the numbers running around in the background... I know I'd get fed up after a few hours but I think it'd be cool until such time

    ( Just in case you want to know the effect, try running the following piece of code after making your terminal font colour as green with a black background . But I hope you have a good processor.. or i think it may lag..)

    Code:
    /* This program will attempt to create a matrix type simulation */
    
    
    #include <iostream>
    #include <cstdlib>
    
    using namespace std;
    
    int main()
    {
            int i,x=0, nbr, spc;
            while(1)
            {
            x = 0;
            {
    //      generate the random space value
            spc = rand();
            spc %= 50;
            for(i=0;i<spc;i++)
                    cout << " ";
    // Now generate the random number
            nbr = rand();
            nbr %= 100;
            cout << nbr;
            x++;
            }
            }
    }
    Of course, hit CTRL + C to stop the program

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    5,198
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: A live wallpaper?!

    This kind of thing was a common customisation a while back. If you look for something like "drawing xscreensaver on the root window" you'll probably get some results that will point you in the right direction.
    None but ourselves can free our minds

  3. #3
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,828

    Re: A live wallpaper?!

    glmatrix screensaver, built in by default i believe
    Feel Free to Bitcoin Tip: 135Rp4pwwYTHEJ4u8bxKaDQiC91N9LUoV2

    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  4. #4
    Join Date
    Jul 2011
    Location
    In a bad world!
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A live wallpaper?!

    Quote Originally Posted by CatKiller View Post
    This kind of thing was a common customisation a while back. If you look for something like "drawing xscreensaver on the root window" you'll probably get some results that will point you in the right direction.
    hmmm... xscreensaver looks interesting... although it comes with its own set of screensavers which one can use, I believe there is some flexibility to add some of your as well... I'd spend some time on this... Thanks for the info, CatKiller!

  5. #5
    Join Date
    Jul 2011
    Location
    In a bad world!
    Beans
    9
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A live wallpaper?!

    Quote Originally Posted by haqking View Post
    glmatrix screensaver, built in by default i believe
    Yeah, built in... you'll never get that satisfaction you know...

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
  •