Hammerspoon Spoon to display CPU temp in menubar
-
Make sure that you have Hammerspoon installed.
If it's not installed already, then use the Getting Started with Hammerspoon guide to learn how to install and use Hammerspoon.
-
Install iStats ruby gem
gem install iStats
- Install this Spoon
The easiest way to do this is to download the ZIP version of this Spoon, unzip it, then double click the CPUTempMenuDisplay.spoon folder. Hammerspoon will install it for you.
If you plan on modifying the Spoon and sending a pull request to this repo, then you should clone this repo into your ~/.hammerspoon/Spoons
In your Hammerspoon config, load this Spoon: hs.loadSpoon("CPUTempMenuDisplay")
Start the plugin and create the menu item: spoon.CPUTempMenuDisplay:start()
spoon.CPUTempMenuDisplay:start()
takes an optional parameter, a number of seconds it should refresh at. Be default, it is 20.
You can click the menubar item to pause/play the track.
Click the menu bar item to switch between Celsius (default) and Fahrenheit.
- Zoom.spoon - inspiration, installation instructions (mostly copied verbatim)
- Hammerspoon Contributors - thanks for Hammerspoon!
- TwoLeaves Gist - example, iStats usage