diff options
Diffstat (limited to '.config/lemonblocks/modules/cpu_temp.sh')
-rwxr-xr-x | .config/lemonblocks/modules/cpu_temp.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/lemonblocks/modules/cpu_temp.sh b/.config/lemonblocks/modules/cpu_temp.sh new file mode 100755 index 0000000..a5286ad --- /dev/null +++ b/.config/lemonblocks/modules/cpu_temp.sh @@ -0,0 +1,5 @@ +#!/bin/bash +CEL=$'\xc2\xb0C' +temp=$( cat /sys/devices/virtual/thermal/thermal_zone0/temp ) +temp=`expr $temp / 1000` +printf " TEMP:$temp$CEL " |