diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:41:50 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:41:50 +0530 |
commit | 6e9091e26593a145e6350a01bad53f26acea75a1 (patch) | |
tree | 2d841fa503d20560d2f6e57a33c8ded65d817be8 /.config/lemonblocks/modules/cpu_temp.sh | |
parent | f94c1202afce479d61ff833d8cd05fe417c98288 (diff) |
pushing all the dotfiles again
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 " |