conky 增加cpu温度监控

Posted zhangjianying

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了conky 增加cpu温度监控相关的知识,希望对你有一定的参考价值。

先安装 sensors

然后修改conky配置

use_xft yes
xftfont WenQuanYi Zen Hei:pixelsize=12
xftalpha 0.1
update_interval 1
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0

double_buffer yes
#minimum_size 250 5
#maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes


minimum_size 0 0
TEXT
${voffset 10}${color EAEAEA}${font WenQuanYi Zen Hei:pixelsize=120}${time %H:%M}${font}${voffset -84}${offset 10}${color FFA300}${font WenQuanYi Zen Hei:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font WenQuanYi Zen Hei:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 24}${font WenQuanYi Zen Hei:pixelsize=58}${offset -148}${time %A}${font}
${voffset 1}${offset 12}
${font WenQuanYi Zen Hei:pixelsize=12}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${color green}CPU1 Temp: ${color red}${exec sensors | grep ‘Core 0‘ | cut -c18-22}°C
${color green}CPU2 Temp: ${color red}${exec sensors | grep ‘Core 1‘ | cut -c18-22}°C





以上是关于conky 增加cpu温度监控的主要内容,如果未能解决你的问题,请参考以下文章

conky配置求助

怎么用python实现电脑cpu温度监控,最好有代码,windows平台,求大神

谁能出个conky 配置教程

分享几个实用的代码片段(附代码例子)

分享几个实用的代码片段(附代码例子)

CPU温度监控