Wrote a script. It sets a nice random(ish) wallpaper tint.

Wrote a script. It sets a nice random(ish) wallpaper tint.

http://www.lightninglauncher.com/wiki/doku.php?id=script_tint_hues
]]>

6 Commentsto Wrote a script. It sets a nice random(ish) wallpaper tint.

  1. Anonymous says:

    < ![CDATA[

    What I’d like to be able to do is have the script automatically run occasionally. Is this feasible?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I personally have a similar script (it changes the color of some items’s background semi-randomly, but the idea is the same) set in the resumed event of the desktop. This way you are sure that the desktop changes when it is loaded. It works fine in my opinion, although sometimes you see the ‘refresh’ of the color.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I actually tried that first. The trouble is, it causes a brief stutter in the moment you most expect responsiveness.



    Maybe it can be hooked in to General > Events > Screen Off somehow…

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Because you are changing a container’s properties.


    That’s why I’m changing an item background (two to be more exact)



    This is my script, adapt it if you want 🙂



    if(LL.isPaused())return;



    var rand=(parseFloat(LL.getScriptTag()||”0″)+90+Math.random()*180)%360;


    LL.setScriptTag(rand);



    var c=LL.getEvent().getContainer();


    //alert(c)


    setbg(c.getItemByName(“bar”),rc(255/2,rand));


    setbg(c.getItemByName(“background”),rc(255/8,rand));







    function rc(a,h){


    return Color.HSVToColor(a,[h,1,1]);


    }



    function setbg(it,c){


    var p=it.getProperties().edit()


    p.getBox(“i.box”).setColor(“c”,”n”,c);


    p.commit();


    }

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Suddenly, It can’t work.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    My code still works for me

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *