码迷,mamicode.com
首页 > 其他好文 > 详细

conky配置2

时间:2019-08-27 19:36:02      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:orange   src   proc   utf8   soft   nts   visual   font   rgb   

技术图片

 

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

##########
# - HD - #
##########
${voffset -38}${font Monaco:size=18}HD $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=18}SYSTEM $stippled_hr${font}
${goto 20}${voffset 0}Kernel: ${alignr}${color2}${kernel}${color}
${goto 20}Uptime: ${alignr}${color2}${uptime}${color}
# |--CPU
${goto 20}CPU Temp:${color1}${alignr}$acpitemp${color}°C
${goto 20}CPU1: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpubar cpu1 8,60 3465A4 204A87}${color}
${goto 20}CPU2: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu2 8,60 3465A4 204A87}${color}
${goto 20}CPU3: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu3}%${color}${font} ${alignr}${color2}${cpubar cpu3 8,60 3465A4 204A87}${color}
${goto 20}CPU4: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu4}%${color}${font} ${alignr}${color2}${cpubar cpu4 8,60 3465A4 204A87}${color}
${goto 20}CPU5: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu5}%${color}${font} ${alignr}${color2}${cpubar cpu5 8,60 3465A4 204A87}${color}
${goto 20}CPU6: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu6}%${color}${font} ${alignr}${color2}${cpubar cpu6 8,60 3465A4 204A87}${color}
${goto 20}CPU7: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu7}%${color}${font} ${alignr}${color2}${cpubar cpu7 8,60 3465A4 204A87}${color}
${goto 20}CPU8: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu8}%${color}${font} ${alignr}${color2}${cpubar cpu8 8,60 3465A4 204A87}${color}
${goto 20}CPU9: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu9}%${color}${font} ${alignr}${color2}${cpubar cpu9 8,60 3465A4 204A87}${color}
${goto 20}CPU10: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu10}%${color}${font} ${alignr}${color2}${cpubar cpu10 8,60 3465A4 204A87}${color}
${goto 20}CPU11: ${font Monaco:size=10}${color1}${goto 90}${cpu cpu11}%${color}${font} ${alignr}${color2}${cpubar cpu11 8,60 3465A4 204A87}${color}
${goto 20}CPU12: ${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 20}RAM: ${font Monaco:size=10}${color1}$memperc%${color}${font}
${offset 1}${goto 20}F: ${font Monaco:size=10}${color2}${memeasyfree}${color}${font} ${goto 120}${voffset -3}T: ${font Monaco:size=10}${color2}${memmax}${color}${font}
# |--SWAP
${goto 20}SWAP: ${font Monaco:size=10}${color1}${swapperc}%${color}${font}
${voffset 2}${offset 1}${color}${voffset -2}${goto 20}F: ${font Monaco:size=10}${color2}$swapmax${color}${font} ${goto 120}${voffset -3}T: ${font Monaco:size=10}${color2}$swapmax${color}${font}
# |--PROC
${goto 20}${color #8AE234}$hr${color}
${goto 20}Processes: ${color2}${alignr 26}PID${alignr 10}CPU${alignr}RAM${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=18}NVIDIA $stippled_hr${font}
${goto 20}${voffset 8}GPU 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 20}GPU Clock:${alignr}${font Monaco:size=10}${color1} ${goto 200} ${exec nvidia-settings -q [gpu:0]/GPU2DClockFreqs -t}${font}${color}MHz
#${goto 20}Video RAM:${alignr}${font Monaco:size=10}${color1} ${exec nvidia-settings -q [gpu:0]/VideoRam -t}${font}${color}KiB
${goto 20}Video RAM:${font Monaco:size=10}${color1}${alignr}6${voffset -2}${font}${color}GB
${goto 20}Driver Version:${font Monaco:size=10}${color1} ${goto 176} ${exec nvidia-settings -q [gpu:0]/NvidiaDriverVersion -t}${font}${color}

 

conky配置2

标签:orange   src   proc   utf8   soft   nts   visual   font   rgb   

原文地址:https://www.cnblogs.com/mc-r/p/11420103.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!