add middled temp over all sensors
This commit is contained in:
parent
344def0093
commit
486122ce5d
6
.conkyrc
6
.conkyrc
@ -43,6 +43,7 @@ show_graph_range true
|
|||||||
lua_load ~/bin/conky_format.lua
|
lua_load ~/bin/conky_format.lua
|
||||||
|
|
||||||
TEXT
|
TEXT
|
||||||
|
${lua_parse format %2.2s ${execi 10 conky_temp.sh}}°C | \
|
||||||
CPU: ${lua_parse format %4.4s ${freq}} MHz \
|
CPU: ${lua_parse format %4.4s ${freq}} MHz \
|
||||||
${lua_parse format %3.3s ${cpu cpu0}}% \
|
${lua_parse format %3.3s ${cpu cpu0}}% \
|
||||||
${if_match ${cpu cpu0}>90}${color red}${else}\
|
${if_match ${cpu cpu0}>90}${color red}${else}\
|
||||||
@ -56,5 +57,6 @@ WIFI: ${lua_parse format %3.3s ${execi 10 conky_wifi.sh sig}}% ${execibar 10 con
|
|||||||
▲ ${upspeed iwm0} ▼ ${downspeed iwm0} \
|
▲ ${upspeed iwm0} ▼ ${downspeed iwm0} \
|
||||||
${if_empty ${addr iwm0}}${lua_parse format %15.15s 0.0.0.0}${endif}${lua_parse format %15.15s ${addr iwm0}} : \
|
${if_empty ${addr iwm0}}${lua_parse format %15.15s 0.0.0.0}${endif}${lua_parse format %15.15s ${addr iwm0}} : \
|
||||||
${execi 10 conky_wifi.sh sid} \
|
${execi 10 conky_wifi.sh sid} \
|
||||||
$alignr Mails: ${new_mails $HOME/.local/share/mail/werler_is/INBOX 5} \
|
$alignr \
|
||||||
$alignr ${time %a %d. %b %Y %H:%M:%S}${font}${offset 1920}
|
Mails: ${new_mails $HOME/.local/share/mail/werler_is/INBOX 5} \
|
||||||
|
${time %a %d. %b %Y %H:%M:%S}${font}${offset 1920}
|
||||||
|
22
bin/conky_temp.sh
Executable file
22
bin/conky_temp.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/ksh
|
||||||
|
|
||||||
|
_count=0
|
||||||
|
_temp=0
|
||||||
|
|
||||||
|
sysctl hw.sensors | { while read _sensor _rest; do
|
||||||
|
|
||||||
|
case ${_sensor} in
|
||||||
|
|
||||||
|
*temp*)
|
||||||
|
|
||||||
|
_t=${_sensor##*=}
|
||||||
|
_t=${_t%%.*}
|
||||||
|
|
||||||
|
(( _count += 1 ))
|
||||||
|
(( _temp += ${_t} ))
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
done
|
||||||
|
[[ ${_count} -ne 0 ]] && print $(( _temp /= ${_count} ))
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user