conky増加cpu温度モニタリング

1536 ワード

先に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