From 6e9091e26593a145e6350a01bad53f26acea75a1 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 8 Apr 2021 16:41:50 +0530 Subject: pushing all the dotfiles again --- .config/lemonblocks/modules/cpu_temp.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .config/lemonblocks/modules/cpu_temp.sh (limited to '.config/lemonblocks/modules/cpu_temp.sh') 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 " -- cgit v1.2.3