deepin已经很好看了,但还可以美化!
Conky参上!


安装Conky

  • 安装Conky组件
sudo apt-get install conky-all
  • 安装Conky管理器
wget --no-check-certificate https://github.com/teejee2008/conky-manager/releases/download/v2.4/conky-manager-v2.4-amd64.run

或者在这里下载conky-manager-v2.4-amd64.run,重命名为conky-manager-v2.4-amd64.run
- 给予权限

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

创建组件

.conky目录下,新建组件文件

cd ~/.conky
sudo touch deepin_conky
sudo deepin-editor deepin_conky

设置组件,将以下内容复制到deepin_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 Diego
${color #98c2c7}邮箱:  ${color}$alignr 3013006997@qq.com
${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_20200429221826.png

设置开机自启

截图录屏_conky-manager_20200430231012.png
截图录屏_conky-manager_20200430231027.png
打开第一个选项即可

为什么这么麻烦?

Conky原生的组件对deepin并不友好,所以……

问题修复

如果CPU温度无法显示
请安装一个东西:

sudo apt-get install lm-sensors