djazz

Show temperature in tmux's taskbar (or similar)

Jan 21st, 2013
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. while true; do
  4.         rawtemp=`cat /sys/class/thermal/thermal_zone0/temp`
  5.         temp=`echo "$rawtemp / 1000" | bc`
  6.         echo $temp\C
  7.         echo -e '\033k'$temp\C'\033\\'
  8.         sleep 10
  9. done
RAW Paste Data