Advertisement
djazz

Show temperature in tmux's taskbar (or similar)

Jan 21st, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement