Conky Installation and configuration files

Source: Internet
Author: User
Tags cpu usage

1. Installation

sudo apt-get install Conky
zcat/usr/share/doc/conky/examples/conky.conf.gz > ~/.CONKYRC

You may be prompted not to find the file.

2. Edit the configuration file

sudo gedit ~/.CONKYRC

Add the following content:

Use_spacer Right
Use_xft Yes
Font Microsoft yahei:size=8
Xftfont Microsoft yahei:size=8
#xftfont Wenquanyi Zen hei:pixelsize=12
Override_utf8_locale Yes
Update_interval 1.0
Own_window Yes
Own_window_type Normal
Own_window_transparent Yes
Own_window_hints Undecorated,below,sticky,skip_taskbar,skip_pager
Double_buffer Yes
Minimum_size 206 5
Maximum_width 400
Draw_shades Yes
Draw_outline No
Draw_borders No
Draw_graph_borders No
Default_color FFFFFF
Default_shade_color 000000
Default_outline_color 000000
Alignment Top_right
Gap_x 10
Gap_y 30
Cpu_avg_samples 2
Uppercase No # set to Yes if you want all text to is in uppercase

TEXT
${font Microsoft Yahei:style=bold:pixelsize=30}${alignc}${time%h:%m:%s}
${font Microsoft Yahei:pixelsize=18}${alignc}${time%b%d Day week%a}${font Microsoft yahei:pixelsize=12}
${color #ffd700}${hr 1} $color
${color #98c2c7} host Name: ${color #db7093} $ALIGNR $nodename
${color #98c2c7} kernel: ${color #db7093} $ALIGNR $kernel
${color #98c2c7} powered on: ${color #db7093} $ALIGNR $uptime
${color #98c2c7}ip Address: ${color #db7093} ${alignr} ${addr eth0}
${color #98c2c7}cpu usage: ${color #db7093} $ALIGNR $cpu%
${color #78af78} $cpubar
${color #ddaa00} ${top name 1} $ALIGNR ${top CPU 1}
${color Lightgrey} ${top Name 2} $ALIGNR ${top CPU 2}
${color Lightgrey} ${top name 3} $ALIGNR ${top CPU 3}
${color #98c2c7} physical Memory: ${color #4169e1} $alignr ${color} $mem ${color #98c2c7}/${color} $memmax ${color #4169e1}${color # db7093} $memperc%
${color #78af78}${membar}
${color #98c2c7} root partition: ${color}${alignr}${fs_free/}/${fs_size/}
${color #78af78}${fs_bar 4/}
${color #98c2c7}home partition: ${color}${alignr}${fs_free/home}/${fs_size/home}
${color #78af78}${fs_bar 4/home}
${color #98c2c7} download speed: ${color} ${downspeed eth0} k/s
${color #98c2c7} upload speed: ${color} ${upspeed eth0} k/s
${color #ffd700}${hr 1} $color

3. Random Start:

Create a script file that reads as follows:

#!/bin/bash

Sleep 8 && Conky

Then add it to the startup application.

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.