自己整理使用的conky:简单才是硬道理

Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen

Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)

All rights reserved.

This program is free software: you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation, either version 3 of the License, or

(at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program. If not, see http://www.gnu.org/licenses/.

########################

全局属性参数

#######################

# Performance Settings

alignment top_left
background no
border_width 1
cpu_avg_samples 2
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

Size and position

gap_x 5
gap_y 10
minimum_size 5 5

Window Settings

own_window no
own_window_transparent yes
own_window_class Conky
own_window_type desktop

Window border

draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

Default Color

default_color lightgrey
default_outline_color lightgrey
default_shade_color white

Default Fonts

use_xft yes
xftfont DejaVu Sans Mono:size=12

##############################################

Output

##############################################
TEXT
########################

系统机器参数

#######################
${color grey}Operation System:${alignr}$color${scroll 16 $nodename – $sysname $kernel on $machine | }
$hr
########################

日期

#######################
${color grey}Date:${alignr}${color}${time %B %d %A}
${color grey}Time:${color}${time %H:%M:%S}${alignr}${color grey}Uptime:${color} $uptime
########################

系统运行信息

#######################
########################

进程

#######################
${color grey}System Load:$alignr ${color}${loadavg 1} ${loadavg 2} ${loadavg 3}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
$stippled_hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
########################

CPU

#######################
${color grey}System Monitoring:$stippled_hr
${color grey}CPU Frequency (in MHz):$color ${alignr}$freq MHz

${color grey}CPU Frequency (in GHz):$color ${alignr}$freq_g GHz

${color grey}CPU Usage:$color $cpu% ${cpubar}
${cpugraph}

core1: ${cpu cpu0}%${cpubar cpu0}

core2: ${cpu cpu1}%${cpubar cpu1}

core3: ${cpu cpu2}%${cpubar cpu2}

core4: ${cpu cpu3}%${cpubar cpu3}

${cpugraph cpu0 20,46} ${cpugraph cpu1 20,46} ${cpugraph cpu2 20,46} ${cpugraph cpu3 20,46}

########################

内存

#######################
${color grey}RAM Usage:$color $mem/$memmax – $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax – $swapperc% ${swapbar 4}

${memgraph}

########################

文件系统

#######################
${color grey}File systems:$stippled_hr
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Disk I/O:$color$diskio
${diskiograph /dev/sda8}
########################

网络

#######################

网络信息#####

${color grey}Network:$stippled_hr
${color grey}Ethernet IP:${alignr} $color${addr wlan0}
${color grey}WiFi IP:${alignr}$color${addr wlan0}
${color grey}GateWay:${alignr}$color$gw_ip

wifi信号

Signal:

${wireless_link_qual wlan0}%

${wireless_link_bar 8,110 wlan0}

流量监控#####

upspeed 上传速度

upspeedgraph 上传图形

totalup 上传流量

${color grey}Upload:$color${upspeed eth0}/s ${alignr}${color grey}Traffic:$color${totalup eth0}
${upspeedgraph wlan0 CE5C00 E07A1F}
#######

downspeed 下载速度

downspeedgraph 下载图形

totaldown 下载流量

${color grey}Download:$color${downspeed eth0}/s ${alignr}${color grey}Traffic:$color${totaldown eth0}
${downspeedgraph eth0 CE5C00 E07A1F}
#######################

上传下载左右分布

#######################
${color grey}Down: ${downspeed eth0}/s $alignr ${color grey}Up:${upspeed eth0}/s
${downspeedgraph eth0 30,100}$alignr ${upspeedgraph eth0 30,100}
########################

音乐播放器 MPD

#######################
${color grey}Music Player Daemo(MPD):$stippled_hr
${color grey}MPD:$alignc$color$mpd_smart
${color}$mpd_bar
${color grey}Process:$alignc$color$mpd_elapsed/$mpd_length=$mpd_percent% $alignr ${color grey}Bitrate:${color}$mpd_bitrate
${color grey}Status:$alignc$color$mpd_status$alignr ${color grey}Random:$color$mpd_random$alignr ${color grey}Repeat:$color$mpd_repeat
${color grey}Album:$color$mpd_album
${color grey}File:$color${scroll 16 $mpd_file}

    原文作者:孤逐王
    原文地址: https://www.jianshu.com/p/de6c6c447a01
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞