Beautiful Horizontal Conky


In the desktop above you can see the horizontal conky at the bottom of the desktop. Following is the configuration file .conkyrc from which you can achieve this.

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 1

#shades
draw_shades no

#position
gap_x 0
gap_y 1
alignment bottom_left

#behaviour
update_interval 5

#colour
#default_color  8f8f8f
default_color    e0e0e0
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont sans:size=9

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

#to prevent window from moving
use_spacer none
minimum_size 1200 0

TEXT
${alignc}${color}Kernel:${color e0e0e0}$kernel${color 000000} | ${color}Uptime:${color e0e0e0}${uptime_short}${color 000000} | ${color}Cpu1:${color e0e0e0}${cpu cpu1}%${color 000000} | ${color}Cpu2:${color e0e0e0}${cpu cpu2}%${color 000000} | ${color}Ram:${color e0e0e0}${memperc}%${color}${color 000000} | ${color}Swap:${color e0e0e0}${swapperc}%${color}${color 000000} | ${color}Root:${color e0e0e0}${fs_used_perc /}%${color 000000} | ${color}Home:${color e0e0e0}${fs_used_perc /home}%${if_existing /proc/net/route wlan0}${color 000000} | ${color}Signal:${color e0e0e0}${wireless_link_qual wlan0}%${color 000000} | ${color}Up:${color e0e0e0}${upspeed wlan0}kb/s${color}/Down:${color e0e0e0}${downspeed wlan0}kb/s${color}${else}${if_existing /proc/net/route eth0}${color 000000} | ${color}eth0:${color e0e0e0}${downspeed eth0}/${upspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${color 000000} | ${color}DiskIO:${diskio}${alignc}

You can optimize this file by decent use of ${color} variable. I messed this up as I am lazy and quite busy.

If you are new to conky, I'll write a short instruction on how to achieve this.
  1. Install conky by clicking here or by opening terminal and typing sudo aptitude install conky or from add/remove program or from synaptic package manager.
  2. Create a file with name .conkyrc and copy the content from top and save it in your homefolder.
  3. Now press Alt+F2 and type conky
  4. You'll see the bar at the bottom of your screen.
  5. You can change the update_interval 5 to smaller number. Actually you can change everything to suit your needs. You can look for more .conkyrc  file or read conky manual by doing man conky.
  6. Put it in Syste/Preferences/Startup Application to make it start on every boot.

Comments

Popular posts from this blog

Perm Root HTC Desire Gingerbread 2.3.3

Increase Free Space On HTC Desire Android Phones

Send SMS Using Gammu Command Line Tool