先放效果图

 

 

 

 

下面开始安装教程

首先声明我使用的是deepin(深度15.11)

在终端中输入

sudo apt-get install conky

 

使用wget下载conky-manager

wget --no-check-certificate https://github.com/teejee2008/conky-manager/releases/download/v2.4/conky-manager-v2.4-amd64.run

给予权限

chmod +x ./conky-manager-v2.4-amd64.run

 执行程序

sudo ./conky-manager-v2.4-amd64.run

安装完成后终端执行

conky-manager

并打开程序目录

cd ~/.conky/

新建一个文件夹yxconky并进入文件夹新建一个文件yx_conky

写入以下代码

default_color white
double_buffer yes
no_buffers yes
update_interval 1.0
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
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders n0
minimum_size 300 1
maximum_width 406
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 6
gap_y 5
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no
use_xft yes
xftfont WenQuanYi Zen Hei:pixelsize=12
override_utf8_locale yes
use_spacer no
minimum_size 300 1
TEXT
${font LCD:style=Bold:pixelsize=40}${alignc}${time %I:%M:%S}
${font LCD:style=Bold:pixelsize=20}${time %Y年%b%d日 星期%a}${alignc}
${font WenQuanYi Zen Hei:pixelsize=14}
 
${color #98c2c7}姓名:  ${color}$alignr 新新点灯
${color #98c2c7}邮箱:  ${color}$alignr 可自己填写
${color #98c2c7}内核:  ${color}$alignr$kernel
${color #98c2c7}已开机: ${color}$alignr$uptime
 
 
${color #98c2c7}CPU使用率: ${color}$cpu%
 
$cpubar
 
 CPU1 温度:  $alignr${exec sensors | grep 'Core 0' | cut -c17-25}
 CPU2 温度: $alignr${exec sensors | grep 'Core 1' | cut -c17-25}
 
${color #98c2c7}CPU占用:${color}
 
 ${top name 1} ${alignr}${top cpu 1} 
 ${top name 2} ${alignr}${top cpu 2} 
 ${top name 3} ${alignr}${top cpu 3} 
 ${top name 4} ${alignr}${top cpu 4} 
 ${top name 5} ${alignr}${top cpu 5} 
 ${top name 6} ${alignr}${top cpu 6} 
 
${color #98c2c7}物理内存:${color}${alignr}$mem / $memmax
 
${membar}
 
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
 
${fs_bar 4 /}
 
#${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
 
#${fs_bar 4 /home}
 
#${color #98c2c7}网络使用:${color}
 
#下载速度:$alignr${downspeed wlp3s0} k/s
#上传速度:$alignr${upspeed wlp3s0} k/s
${downspeedgraph wlp3s0 324D23 77B753}

保存,并终端输入conky-manager勾选yx_conky文件并进入该程序设置界面打开开机自启动

完成

 

如无法检测cpu温度

请安装lm-sensors

sudo apt-get install lm-sensors

下方为我所查的资料链接

https://blog.csdn.net/a15005784320/article/details/103436084

https://blog.csdn.net/u014130271/article/details/72142886

https://www.veryarm.com/71823.html  #为部分conky设置说明

posted on 2020-02-13 11:26  新新点灯  阅读(6758)  评论(0编辑  收藏  举报