Centos6.5 install conky

Source: Internet
Author: User
Tags disk usage

Environment centos6.5



First, yum install conky


If you directly call the default configuration on the terminal at this time, the configuration will be under/etc/conky. conf.

We can use our own configuration to write the configuration file under the main directory.


# Set to yes if you want conky to be forked in the background Background yescpu_avg_samples 2net_avg_samples 2out_to_console no # X Font when xft is disabled, you can pick one with program xfontsel # font 7x12 # font 6x10 # font 7x13 # font 8x13 # font 7x12 # font * mintsmild. se * # font-*-34-* # font-artwiz-snap-normal -R-normal-*-100-*-p-*-iso8859-1 # Use xft? Use_xft yes # xft font when xft is enabled xftfont sans: size = login no # own_window_colour hotpink # text Alpha when using xftxftalpha 0.8 # on_bottom yes # mail timeout $ mail # Update Interval in secondsupdate_interval 1 # create own window instead of using desktop) own_window yesown_window_transparent yesown_window_hints undecorated, below, sticky, skip_taskba R, skip_pagerown_window_type override # Use double buffering (CES flicker, may not work for everyone) double_buffer yes # minimum size of text areaminimum_size 260 5maximum_width 260 # Draw shades? Draw_shades no # draw outlines? Draw_outline no # draw borders around textdraw_borders no # stippled borders? Stippled_borders no # border marginsborder_margin 4 # border widthborder_width 1 # default colors and also border colorsdefault_color whitedefault_shade_color whitedefault_outline_color white # text alignment, other possible values are commented # alignment top_left # limit 10 10gap_x 5gap_y 2 alignment top_right # alignment bottom_left # alignment bottom_right # gap between borders of screen and text # ad D spaces to keep things from moving about? This only affects certain objects. use_spacer none # subtract file system buffers from used memory? No_buffers yes # Set to yes if you want all text to be in uppercaseuppercase no # none, xmms, BMP, audacious, infopipe (default is none) # xmms_player BMP # BOINC (Seti) dir # seti_dir/opt/SETI # possible variables to be used: # Variable Arguments description # acpiacadapter acpi ac adapter state. # acpifan ACPI fan state # acpitemp ACPI temperature. # adt746xcpu CPU temperature from therm_adt746x # ADT 746 xfan fan speed from therm_adt746x # Battery (Num) remaining capasity in ACPI or APM # Battery. ACPI Battery number can be # given as argument (default is bat0 ). # buffers amount of memory buffered # cached amount of memory cached # color (color) Change drawing color to color # CPU usage in percents # cpubar (height) bar that shows CPU usage, height is # bar's height in pixels # downspeed ne T download speed in kilobytes # downspeedf net download speed in kilobytes with one # decimal # exec shell command executes a shell command and displays # the output in torsmo. warning: This # takes a lot more resources than other # variables. I 'd recommend coding wanted # behaviour in C and posting a patch :-). # execi interval, shell same as exec but with specific interval. # command interval ca N' t be less than # update_interval in configuration. # fs_bar (height), (FS) bar that shows how much space is used on # A file system. height is the height in # pixels. FS is any file on that file # system. # fs_free (FS) free space on a file system available # for users. # fs_free_perc (FS) Free percentage of space on a file # system available for users. # fs_size (FS) file system size # fs_used (FS) file system used space # HR (height) horizontal line, height is the height in # pixels # I2C (Dev), type, N I2C sensor from sysfs (Linux 2.6 ). dev # may be omitted if you have only one I2C # device. type is either in (or vol) # meaning voltage, Fan meaning fan or temp # meaning temperature. N is number of the # sensor. see/sys/bus/I2C/devices/on # Your local computer. # kernel versio N # loadavg (1), (2), (3) system load average, 1 is for past 1 # minute, 2 for past 5 minutes and 3 for # past 15 minutes. # machine, i686 for example # mails mail count in mail spool. you can use # program like fetchmail to get mails from # Some server using your favorite # protocol. see also new_mails. # mem amount of memory in use # membar (height) bar that shows amount of memory in us E # memmax total amount of memory # memperc percentage of memory in use # new_mails unread mail count in mail spool. # nodename hostname # outlinecolor (color) Change outline color # pre_exec shell command executes a shell command one time before # torsmo displays anything and puts output # as text. # processes total processes (sleeping and running) # running_processes running processes (not sleep ING), # requires Linux 2.6 # shadecolor (color) Change shading color # stippled_hr (Space), stippled (dashed) horizontal line # (height) # swapbar (height) bar that shows amount of swap in use # Swap amount of swap in use # swapmax total amount of swap # swapperc percentage of swap in use # sysname system name, linux for example # Time (Format) local time, see man strftime to get more # informatio N about format # totaldown net total download, overflows at 4 GB on # Linux with 32-bit arch and there doesn't # Seem to be a way to know how many times # It has already done that before torsmo # has started. # totalup net total upload, this one too, may overflow # updates number of updates (for debugging) # upspeed net upload speed in kilobytes # upspeedf net upload speed in kilobytes with one # Decimal # uptime # uptime_short uptime in a shorter format # seti_prog [email protected] current progress # seti_progbar (height) [email protected] current progress bar # seti_credit [email protected] total user credit # variable is given either in format $ variable or in $ {Variable }. latter # allows characters right after the variable and must be used in network # stuff because of an argument # $ {Font dungeon: Style = bold: pixelsize = 10} I can change the font as well # $ {font verdana: size = 10} as usual times as I choose # $ {font PERRY: size = 10} including UTF-8, # stuff after 'text' will be formatted on screen # $ {font grunge: size = 12 }$ {time % A % B % d }$ {alignr-25 }$ {time % K: % m} text $ {color green }$ {font pizzadude bullets: size = 16 }? $ {Font: size = 10} Date & time $ HR $ font $ color $ {goto 1000 }$ {time % L: % m }$ {font }$ {time % P }$ {time % A, % E % B % Y }$ {color green }$ {font openlogos: size = 18} W $ {Font: size = 10} system $ HR $ font $ colorhostname: $ alignr $ nodenamekernel: $ alignr $ kerneluptime: $ alignr $ uptimetemp: $ {alignr }$ {acpitemp} °C CPU :$ {alignr }$ {freq Dyn} mhzprocesses :$ {alignr} $ processes ($ running_processes running) load: $ {alignr} $ loadavg $ {color} Battery_percent: $ {battery_percent bat0 }%% {alignr} battery_time :$ {if_match "$ {acpiacadapter}" = "on-line"} (external power supply) $ {else }$ {battery_time bat0 }$ {endif }$ {if_match $ {battery_percent bat0}> 75 }$ {else }$ {if_match $ {battery_percent bat0} <20} $ {else }$ {endif }$ {battery_bar bat0} cpu1 $ {alignr }$ {CPU cpu1 }%% {cpubar 4 cpu1} cpu2 $ {alignr }$ {CPU cpu2 }%% {cpubar 4 cpu2} Ram $ {alignr} $ MEM/$ memmax ($ memperc %) $ {memba R 4} swap $ {alignr} $ swap/$ swapmax ($ swapperc %) $ {swapbar 4 }$ {color blue} highest CPU $ alignr CPU % mem % $ color $ {top name 1} $ alignr $ {top CPU 1 }$ {top mem 1} $ {top name 2} $ alignr $ {top CPU 2 }$ {top mem 2 }$ {top name 3 }$ alignr $ {top CPU 3 }$ {top mem 3} $ {color blue} highest mem $ alignr CPU % mem % $ color $ {top_mem name 1 }1 alignr $ {top_mem CPU 1 }$ {top_mem mem 1 }$ {top_mem name 2} $ alignr $ {top_mem CPU 2} $ {top_mem Mem 2 }$ {top_mem name 3 }$ alignr $ {top_mem CPU 3 }$ {top_mem mem 3 }$ {color green }$ {font pizzadude bullets: size = 16} J $ {Font: size = 10} HDD $ HR $ font $ colorroot: $ {alignr }$ {fs_free/}/$ {fs_size/}$ {fs_bar 4/} USR: $ {alignr }$ {fs_free/usr}/$ {fs_size/usr }$ {fs_bar 4/usr }$ {color green }$ {font pizzadude bullets: size = 16} x $ {Font: size = 10} network $ HR $ font $ color local IP: $ alignr $ {ADDR wlan0} $ color Download: $ {downspeedf wlan0} kb/s $ alignr total :$ {totaldown wlan0} $ color upload :$ {upspeedf wlan0} kb/s $ alignr total: $ {totalup wlan0 }$ {color green }$ {font pizzadude bullets: size = 16 }? $ {Font: size = 10} Weather $ HR $ font $ color $ {goto 12} today: $ {execi 10800 ~ /. Config/wjx. Sh }#$ {goto 12} tomorrow: $ {execi 10800 ~ /. Config/wjx. Sh}


Wjx. Sh

#! /Bin/ shurl = http://www.baidu.com/s? WD = % CC % EC % C6 % f8baidutq =/tmp/wjxw3m-dump $ URL> $ baidutq # Cat-N/tmp/mypogoda | grep "? Time-sharing temperature "# text = 'head-N 118/tmp/wjx | tail-N 49' # echo $ text # 'more" $ text "'# Var = 'echo" $ text "| awk-F 'Week' {print $2}'' # echo $ varvar = 'cat "$ baidutq" | grep "real-time: "'echo $ VaR






Other configurations


background yesuse_xft yesxftfont Zecton:size=8xftalpha 0.5update_interval 1.0total_run_times 0double_buffer yesno_buffers noown_window yesown_window_transparent yesown_window_type overrideown_window_hints undecorate,sticky,skip_taskbar,skip_pagerminimum_size 500 5maximum_width 200draw_shades yesdraw_outline nodraw_borders nodefault_color lightgreyalignment top_rightgap_x 15gap_y 3uppercase nooverride_utf8_locale yesTEXT${color white} ${font PizzaDude Bullets:size=16}V${font :size=10}   Date&Time $hr $font $color${goto 1000}${time %l:%M}${font}${time %p}${time %A, %e %B %Y}${color white}${font OpenLogos:size=18} I${font :size=10}   SYSTEM $hr $font$color $font$sysname: ${alignr} $kernel ($machine)$color Battery: ${alignr}$battery_time${color white} ${font StyleBats:size=16}V${font :size=10}   CPU $hr $font $color$color ${font}[email protected]${freq}MHz: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}$color ${top name 1} $alignr ${top cpu 1}%$color ${top name 2} $alignr ${top cpu 2}%${color white}${font StyleBats:size=16}E${font :size=10}   MEMORY $hr $font $color${color}${font}RAM: $mem/$memmax $alignr $memperc%$color ${membar}${color}${font}Swap: $swap/$swapmax $alignr $swapperc%$color ${swapbar}$color ${top_mem name 1} $alignr ${top_mem mem 1}%$color ${top_mem name 2} $alignr ${top_mem mem 2}%${color white} ${font PizzaDude Bullets:size=16}K${font :size=10}   HDD $hr $font $color$color root: ${fs_used /}/${fs_size /} $alignr ${fs_free_perc /}%$color ${fs_bar /}$color usr: ${fs_used /usr}/${fs_size /usr} $alignr ${fs_free_perc /usr}%$color ${fs_bar /usr}$color opt: ${fs_used /opt}/${fs_size /opt} $alignr ${fs_free_perc /opt}%$color ${fs_bar /opt}$color boot: ${fs_used /boot}/${fs_size /boot} $alignr ${fs_free_perc /boot}%$color ${fs_bar /boot}${color white} ${font PizzaDude Bullets:size=16}@${font :size=10}   NETWORK $hr $font $color$color Local IP: $alignr${addr wlan0}$color Download: ${downspeedf wlan0} KB/s $alignr ${totaldown wlan0}$color Upload: ${upspeedf wlan0} KB/s $alignr ${totalup wlan0}${color white} ${font PizzaDude Bullets:size=16}@${font :size=10}   Weather $hr $font $color$color Skies are: ${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EFTP cloud_cover}$color Winds from the: ${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EFTP wind_dir}$color Winds speed: ${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EFTP wind_speed} km/h$color Humidity: ${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EFTP humidity}% relative humidity$color Temperature: ${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EFTP temperature}C





# Conky settings # background noupdate_interval implements invalid parameters yesdouble_buffer yesno_buffers limit 2048 # invalid parameters # window specifications # own_window contains invalid parameters undecorate, sticky, skip_taskbar, skip_pager, and 0mi Nimum_size 100 150maximum_width 200 alignment trgap_x paiap_y 2 # graphics settings # draw_shades nodraw_outline nodraw_borders #no # text settings # use_xft yesxftfont caviar dreams: size = 8 xftalpha 0.5 uppercase notemperature_unit celsiusdefault_color ffffff # Lua load # lua_load ~ /. Conky/clock_rings.lualua_draw_hook_pre clock_ringstext $ {voffset 8 }$ {color ff6600 }$ {font monospace: Style = bold: size = 16 }$ {time % A }$ {font }$ {voffset-8 }$ {alignr 50 }$ {color ffffff }$ {font caviar dreams: size = 38 }$ {time % E }$ {font }$ {color ffffff }$ {voffset-30 }$ {color ffffff }$ {font monospace: Style = bold: size = 18 }$ {time % B }$ {font }$ {voffset-3 }$ {color ffffff }$ {font caviar dreams: size = 20 }$ {time % Y }$ {font }$ {color ff6600 }$ {HR }$ {voffset 140 }$ {font monospace: Style = bold: size = 10 }$ {alignr} current temperature $ {font }$ {font caviar dreams: size = 12 }$ {color ffffff }$ {alignr }$ {weather http://weather.noaa.gov/pub/data/observations/metar/stations/ zhcc temperature 30} °C $ {font }$ {color ee8262 }$ {goto 25 }$ {voffset 35 }$ {CPU cpu0 }%% {color ff6600 }$ {goto 25} cpu0 $ {color cd950c }$ {goto 50 }$ {voffset 23 }$ {CPU cpu1} % $ {color ff6600 }$ {goto 50} cpu1 $ {color 228b22 }$ {goto 75 }$ {voffset 23 }$ {CPU cpu2 }%% {color ff6600 }$ {GOTO 75} cpu2 $ {color 00ff00 }$ {goto 100 }$ {voffset 23 }$ {CPU cpu3 }%% {color ff6600 }$ {goto 100} cpu3 #$ {color 00ff00 }$ {goto 110 }$ {voffset 30 }$ {downspeed eth0 }$ {goto 165 }$ {downspeed wlan0 }#$ {color ff6600 }$ {goto 110 }$ {upspeed eth0 }$ {goto 165 }$ {upspeed wlan0 }#$ {color ff6600 }$ {font monospace: style = bold: size = 8 }$ {goto 125} network traffic: IP Address: $ alignr $ {ADDR wlan0} download: $ alignr $ {downspeed wlan0}/supload: $ alignr $ {upspeed wlan0}/S $ {color ffffff }$ {font monospace: Style = bold: size = 9} Run Time: $ {uptime_short }$ {goto 110} physical memory: $ {memperc }%% {color ffffff} total number of processes: $ {processes }$ {goto 110} virtual memory: $ {swapperc }%% {color ffffff} running: $ {running_processes }$ {goto 110} disk usage: $ {fs_used_perc/} % # $ {color 00ff00 }$ {font caviar dreams: size = 8 }$ {alignr }$ {nodename }$ {color 00ff00 }$ {font caviar dreams: size = 8 }$ {alignr} release: $ {pre_exec CAT/etc/RedHat-release} $ machine $ {color 00ff00 }$ {font caviar dreams: size = 8 }$ {alignr} kernel :$ {kernel}



Centos6.5 install conky

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.