CentOS6.5 conky安装配置
http://conky.sourceforge.net/
http://conky.sf.net/
http://conky.sourceforge.net/documentation.html
这里以conky-1.9.0为例:
tar -xvf conky-1.9.0.tar.bz2 -C /usr/local/src/
cd /usr/local/src/conky-1.9.0
通过查看,README,我们可以看到最基本安装操作步骤,
Compiling from source
You'll need the X11 development libraries, version 6.8.2 or later. package name is probably libx11-dev (on Debian/Ubuntu), as well as the development libraries for any additional features.
$ ./configure --prefix=/usr --enable-x11 --enable-mpd # see --help for a full listing of options
$ make
# make install
先安装功能所需的库,再通过以下安装脚本完成安装
yum install gcc
################################################
#!/bin/bash
#To configure conky automatically
#Made by liujun, liujun_live@msn.com, 2014-08-15
################################################
./configure
make && make install
最后附上本人根据conky-snapshot等模板自定义的一个配置文件,供大家参考,
~/.conkyrc
# conky configuration
# edited by darcon@gmail.com
# set to yes if you want Conky to be forked in the background
background yes
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8
# Text alpha when using Xft
xftalpha 0.8
# Print everything to console?
# out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 1000 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 1400
gap_y 1
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# Add spaces to keep things from moving about?
use_spacer yes
#Note: doesn't work in conky 1.2 =(
#
#
#
#
# Possible variables to be used:
#
#
#
#
#
#
#