conky配置2

Posted mc-r

tags:

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

技术图片

 

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
if_up_strictness link
imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Microsoft YaHei:size=11
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 200
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_left
gap_x 25
gap_y 36
minimum_size 236 900
maximum_width 236
default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no
default_color cccccc
color0 cyan
color1 green
color2 orange
color3 204A87

TEXT

#############
# - CLOCK - #
#############
$font Monaco:size=18DATE $stippled_hr$font
$goto 20$voffset -2$color2$font Monaco:size=30$time %H:%M$font$color $voffset -20$alignr $font WenQuanYi Micro Hei:size=18$time %A$font
$goto 20$voffset 8$color #8AE234$hr$color
$alignr$voffset -2$font Microsoft YaHei Mono:size=16$time %d %B %Y$alignr$font

##############
# - NETWORK - #
###############
$voffset -25$font Monaco:size=18NETWORK $stippled_hr$font
# |--enp3s0
$if_up enp3s0
$goto 20$voffset -20Up: $font Monaco:size=10$color1$upspeed enp3s0$color$font 
$alignr$color2$voffset -25$upspeedgraph enp3s0 30,100 ff0000 0000ff$color
$goto 20$voffset -28Total: $font Monaco:size=10$color2$totalup enp3s0$color$font
$goto 20$voffset 2Down: $font Monaco:size=8$color1$downspeed enp3s0$color$font 
$alignr$voffset -25$color2$downspeedgraph enp3s0 30,100 3465A4 204A87$color
$goto 20$voffset -28Total: $font Monaco:size=8$color2$totaldown enp3s0$color$font
$goto 20$voffset -15$color #8AE234$hr$color
$goto 20$voffset -6Local IP: $alignr$color2$addr enp3s0$color
# |--wlo1
$else$if_up wlo1
$goto 20$voffset -20Up: $font Monaco:size=10$color1$upspeed wlo1$color$font 
$alignr$color2$voffset -25$upspeedgraph wlo1 30,100 ff0000 0000ff$color
$goto 20$voffset -28Total: $font Monaco:size=10$color2$totalup wlo1$color$font
$goto 20$voffset 2Down: $font Monaco:size=8$color1$downspeed wlo1$color$font 
$alignr$voffset -25$color2$downspeedgraph wlo1 30,100 3465A4 204A87$color
$goto 20$voffset -28Total: $font Monaco:size=8$color2$totaldown wlo1$color$font
$goto 20$voffset -15$color #8AE234$hr$color
$goto 20$voffset -6Local IP: $alignr$color2$addr wlo1$color
$else
$endif$endif

##########
# - HD - #
##########
$voffset -38$font Monaco:size=18HD $stippled_hr$font
$goto 20 Data:$font Microsoft YaHei Mono:size=10$color2$alignr$fs_bar 8,100 /srv$font$color
$goto 20$voffset -7 Home:$font Microsoft YaHei Mono:size=10$color2$alignr$fs_bar 8,100 /home $color

##############
# - SYSTEM - #
##############
$voffset -10$font Monaco:size=18SYSTEM $stippled_hr$font
$goto 20$voffset 0Kernel: $alignr$color2$kernel$color
$goto 20Uptime: $alignr$color2$uptime$color
# |--CPU
$goto 20CPU Temp:$color1$alignr$acpitemp$color°C
$goto 20CPU1: $font Monaco:size=10$color1$goto 90$cpu cpu1%$color$font $alignr$color2$cpubar cpu1 8,60 3465A4 204A87$color
$goto 20CPU2: $font Monaco:size=10$color1$goto 90$cpu cpu2%$color$font $alignr$color2$cpubar cpu2 8,60 3465A4 204A87$color
$goto 20CPU3: $font Monaco:size=10$color1$goto 90$cpu cpu3%$color$font $alignr$color2$cpubar cpu3 8,60 3465A4 204A87$color
$goto 20CPU4: $font Monaco:size=10$color1$goto 90$cpu cpu4%$color$font $alignr$color2$cpubar cpu4 8,60 3465A4 204A87$color
$goto 20CPU5: $font Monaco:size=10$color1$goto 90$cpu cpu5%$color$font $alignr$color2$cpubar cpu5 8,60 3465A4 204A87$color
$goto 20CPU6: $font Monaco:size=10$color1$goto 90$cpu cpu6%$color$font $alignr$color2$cpubar cpu6 8,60 3465A4 204A87$color
$goto 20CPU7: $font Monaco:size=10$color1$goto 90$cpu cpu7%$color$font $alignr$color2$cpubar cpu7 8,60 3465A4 204A87$color
$goto 20CPU8: $font Monaco:size=10$color1$goto 90$cpu cpu8%$color$font $alignr$color2$cpubar cpu8 8,60 3465A4 204A87$color
$goto 20CPU9: $font Monaco:size=10$color1$goto 90$cpu cpu9%$color$font $alignr$color2$cpubar cpu9 8,60 3465A4 204A87$color
$goto 20CPU10: $font Monaco:size=10$color1$goto 90$cpu cpu10%$color$font $alignr$color2$cpubar cpu10 8,60 3465A4 204A87$color
$goto 20CPU11: $font Monaco:size=10$color1$goto 90$cpu cpu11%$color$font $alignr$color2$cpubar cpu11 8,60 3465A4 204A87$color
$goto 20CPU12: $font Monaco:size=10$color1$goto 90$cpu cpu12%$color$font $alignr$color2$cpubar cpu12 8,60 3465A4 204A87$color
# |--MEM
$goto 20$voffset -10$color #8AE234$hr$color
$goto 20RAM: $font Monaco:size=10$color1$memperc%$color$font
$offset 1$goto 20F: $font Monaco:size=10$color2$memeasyfree$color$font $goto 120$voffset -3T: $font Monaco:size=10$color2$memmax$color$font
# |--SWAP
$goto 20SWAP: $font Monaco:size=10$color1$swapperc%$color$font
$voffset 2$offset 1$color$voffset -2$goto 20F: $font Monaco:size=10$color2$swapmax$color$font $goto 120$voffset -3T: $font Monaco:size=10$color2$swapmax$color$font
# |--PROC
$goto 20$color #8AE234$hr$color
$goto 20Processes: $color2$alignr 26PID$alignr 10CPU$alignrRAM$color
$voffset -1$goto 20$color2$top_mem name 1$color$font Monaco:size=9$color1 $goto 113$top_mem pid 1$goto 153$top_mem cpu 1$alignr $top_mem mem 1$color$font
$voffset -1$goto 20$color2$top_mem name 2$color$font Monaco:size=9$color1 $goto 113$top_mem pid 2$goto 153$top_mem cpu 2$alignr $top_mem mem 2$color$font
$voffset -1$goto 20$color2$top_mem name 3$color$font Monaco:size=9$color1 $goto 113$top_mem pid 3$goto 153$top_mem cpu 3$alignr $top_mem mem 3$color$font
##############
# - NVIDIA - #
##############
$voffset -5$font Monaco:size=18NVIDIA $stippled_hr$font
$goto 20$voffset 8GPU Temp:$goto 200$font Monaco:size=10$color1$exec nvidia-settings -q [gpu:0]/GPUCoreTemp | grep Attribute | cut -d   -f 6 | cut -c 1-2$font$color$voffset -2°C
#$goto 20GPU Clock:$alignr$font Monaco:size=10$color1 $goto 200 $exec nvidia-settings -q [gpu:0]/GPU2DClockFreqs -t$font$colorMHz
#$goto 20Video RAM:$alignr$font Monaco:size=10$color1 $exec nvidia-settings -q [gpu:0]/VideoRam -t$font$colorKiB
$goto 20Video RAM:$font Monaco:size=10$color1$alignr6$voffset -2$font$colorGB
$goto 20Driver Version:$font Monaco:size=10$color1 $goto 176 $exec nvidia-settings -q [gpu:0]/NvidiaDriverVersion -t$font$color

 

以上是关于conky配置2的主要内容,如果未能解决你的问题,请参考以下文章

conky配置(附配置项作用解释)

谁能出个conky 配置教程

CentOS7.5安装配置conky(极简)

manjaro conky配置

conky 增加cpu温度监控

conky 增加cpu温度监控