|
|
Change desktop images based on CPU load via a script
Another version, I'm calling this one from GeekTool on my PowerBook but cron would work as well, a bash script checks the load and calls osascript to directly change the desktop to one of four images, it does nothing if the pic would not change.
I don't think there is a way of fading between the images without using the desktop prefs 'rotate' option which this version does not use, but in some ways the change is more noticeable and there's no wavy effect that occurs when the desktop fades to the same image, I would expect lower overheads as well seeing as the desktop is not being switched out every minute. I have four images, lax.jpg (a dimmed pic) for when it's idling, normal.jpg which is my default desktop, load.jpg (overcast) for when it's been working for a while and warn.jpg (red cast) for when it's sweating. the values for these loads are marked up below and will probably need tweaking for your setup. If anyone wants to clean up the code, I'd welcome the feedback, still learning this stuff. dD
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|