aboutsummaryrefslogtreecommitdiff
path: root/.config/lemonblocks/modules/cpu_temp.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/lemonblocks/modules/cpu_temp.sh')
-rwxr-xr-x.config/lemonblocks/modules/cpu_temp.sh5
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 "