aboutsummaryrefslogtreecommitdiff
path: root/lemonblocks/modules/cpu_temp.sh
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-03-14 17:03:06 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-03-14 17:03:06 +0530
commit29b6d79e5252b8e6af18898ee0d6d7596ffd0841 (patch)
tree6a5532ab66658a23783c54f3a09e3c32d085db96 /lemonblocks/modules/cpu_temp.sh
parent8a6150293fbb183ef3bd6f701fe9c620537a3efa (diff)
pushing lemonblocks config
Diffstat (limited to 'lemonblocks/modules/cpu_temp.sh')
-rwxr-xr-xlemonblocks/modules/cpu_temp.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lemonblocks/modules/cpu_temp.sh b/lemonblocks/modules/cpu_temp.sh
new file mode 100755
index 00000000..c4a2ca6c
--- /dev/null
+++ b/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 ""