Conky: basic configuration and launch at startup
Sunday, 20 June 2010 11:09

 

 

Who uses GNU / Linux software will have heard of conky able, through complete customization by the user to create a very nice desktop for monitoring components such as CPU load, swap usage, saturation occurs hd and bandwidth.

The software listed above is commonly available repository of the various Linux distributions. Who, as in my case, use Archlinux, you can install it using `` pacman - S conky ``.

Once installed, you must change the basic settings that are not as pleasing to the eye when conky is started. That comes into play several configurations. If you want an idea you can check this link: http://bbs.archlinux.org/viewtopic.php?id=39906

 

As you can see there are different configurations shared by users. This below is my:

 

alignment top_right
background yes                          # fork process

color0 1C1C1C                           # section header

double_buffer yes                       # may reduce flicker
default_color BBBBBB
draw_outline no                         # draw text outline
draw_shades no                          # draw shades

gap_x 10                                # right (x) / top (y) screen-gaps
gap_y 45

own_window yes                          # required with nautilus
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

update_interval 3.0                     # update interval in seconds
use_spacer yes                          # prevent shifting when output changes

use_xft yes                             # font settings
xftalpha 0.8
xftfont andale mono:size=8
uppercase no

# Note: cpugraph, downspeedgraph, & upspeedgraph colors
# Gradient1: ffffff - white
# Gradient2: 00A2FF - bright / light blue

TEXT                                    # the following creates onscreen format

${color0}${font openlogos:bold:size=20}Archlinux$font $nodename > ${uptime} ${hr 1}$color
$sysname $kernel / $machine
${if_running gmpc}

${endif}
${color0}CPU  > ${freq}MHz ${hr 1}$color
Avg. Load Over 1, 5, 15 minutes: ${loadavg}
Current Load: $cpu% $cpubar
${cpugraph 15,310 ffffff 00A2FF}

${color0}PROCESSES  > ${processes} / ${running_processes} ${hr 1}$color
NAME                     PID       CPU%      MEM%
${top name 1}         ${top pid 1}   ${top cpu 1}    ${top mem 1}
${top name 2}         ${top pid 2}   ${top cpu 2}    ${top mem 2}
${top name 3}         ${top pid 3}   ${top cpu 3}    ${top mem 3}
${top name 4}         ${top pid 4}   ${top cpu 4}    ${top mem 4}

${color0}MEMORY / SWAP > $memmax / $swapmax ${hr 1}$color
RAM :  $mem / $memperc%${alignr}${membar 6,130}
Swap:  $swap / $swapperc%${alignr}${swapbar 6,130}
I/O :  ${diskio}${alignr}${diskiograph 6,130}

${color0}DISK > /dev/sda ${hr 1}$color
/      (    sdc09):  ${fs_free /} / ${fs_free_perc /}%  ${fs_bar 6 /}
/home  (    sdc10):  ${fs_free /home} / ${fs_free_perc /home}%  ${fs_bar 6 /home}
/k3asd   (vg02-lv01):  ${fs_free /home/k3asd} / ${fs_free_perc /home/k3asd}%  ${fs_bar 6 /home/k3asd}
#/opt   (vg02-lv02):  ${fs_free /opt} / ${fs_free_perc /opt}%  ${fs_bar 6 /opt}
#/var   (vg02-lv03):  ${fs_free /var} / ${fs_free_perc /var}%  ${fs_bar 6 /var}

${color0}NETWORK > ${addr wlan0} ${hr 1}$color
${downspeedgraph wlan0 15,150 ffffff 00A2FF}  ${upspeedgraph wlan0 15,150 ffffff 00A2FF}
Down / Up Speed:  ${downspeed wlan0} k/s  /  ${upspeed wlan0} k/s
Down / Up Bytes:  ${totaldown wlan0}  /  ${totalup wlan0}
Inbound / Outbound / Total: ${tcp_portmon 1 32767 count}  /  ${tcp_portmon 32768 61000 count}  /  ${tcp_portmon 1 65535 count}


Clearly we are making changes such as positioning. In my case it is set up right or you can change the paths to check the available space on hard drives (internal and external), or again you can change the network interface used to monitor the traffic (in my case wlan0 ).

To disable an item you can use the pound " # ".

 

Definitely start at each reboot or startup of the system is rather inconvenient. We can solve by creating a file with .sh with within this content.

sleep 20 && conky

We are saying to conky to start 20 seconds after starting gnome. Saved and given execute permission if not present.

chmod +x /home/user/conky.sh

Without this, if you use gnome go to System - Startup Applications and create a shortcut boot.

In the description you are free to put anything you want, in the command instead go through the appropriate Browse button to select the file you previously created or conky.sh. You should have no problems.

 

Clarification: that command conky sleep 20 && conky set because I had teething problems. I was started before the gnome desktop was fully loaded. The side effect was the fact that once loaded the wallpaper was like conky remained "under" it. With that command but I resolved. Of course you can set a lower latency, such as 15 to 10 - 5. Depends.

 

This is my conky started:

 

Comments

Name *
Email (For verification & Replies)
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
 
Copyright © 2010 www.homelinux.us. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
Creative Commons License
The contents of this work are published under Creative Commons License.