a tmux temperature gauge

I recently bought a new system76 ubuntu laptop that features a very fast intel i7 cpu. this cpu can run quite hot so I decided that it would be useful for tmux to tell me the cpu temperature among other things. Ubuntu features a sensor package that can deliver the data we want to display.

Since I formally used the "right" status are in tmux to display the date and the time, I would combine that with the temperature if available, all formatted by a small perl script.

gist

which is called from my tmux.conf:

gist

last update 2012-07-12