Skip to content
kd
13 Dec 2014
Back to blog

Geektool and Desktop Widgets in OSX

1 min read (126 words)

This is a Geektool tutorial on how to customize your Mac OSX desktop homescreen. Using Geektool you can add a widget like functionality to your desktop.

All you need to do is download the following script from here and place it in any folder. Then add a Geektool script and link it to the bash script you've downloaded.

I've also used a Calvin and Hobbes / Bill Watterson font to display the day, time and weather using the following codes.

Day

Terminal window
date '+%A' | tr [:lower:] [:upper:]

Time

Terminal window
date '+%I: %M %p'

Weather

Terminal window
curl --silent "https://xml.weather.yahoo.com/forecastrss?p=50014&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/
//' -e 's/<b>//' -e 's/<\/b>//' -e 's/
//' -e 's///' -e 's/<\/description>//'

You can also display your battery level, uptime, network connectivity status. There are also loads of preset Geeklets that you can download to get yourself a good looking homescreen. Sky is the limit!


Citation

@online{krishnamurthy2014geektoolanddesktopwidgetsinosx,
  author = {Dheepak Krishnamurthy},
  title = {Geektool and Desktop Widgets in OSX},
  year = {2014},
  date = {2014-12-13},
  url = {https://kdheepak.com/blog/geektool-and-desktop-widgets-in-osx/},
  langid = {en},
}

For attribution, please cite this work as:

Dheepak Krishnamurthy, "Geektool and Desktop Widgets in OSX", December 13, 2014 https://kdheepak.com/blog/geektool-and-desktop-widgets-in-osx/


Mac OSX Tweaks
Robotics