View Single Post
Posts: 112 | Thanked: 105 times | Joined on Mar 2010 @ Montpellier, FRANCE
#38
Hi all

Thank you for your posts about Conky, I could create my config.
I share with you.

Sorry it's in French, but with a little change you could translate it.

The lines vertical (| pipe) and horizontal (_ underscore) are in the end of file if you change some text, adjust voffset and lengh.

Code:
# Conky, a system monitor
# $Id: conky.conf 2010-08-09 GaRy delaMer

# Use Xft?
	use_xft yes
	xftfont Droid Sans Mono:size=11
	xftalpha 0.8
	override_utf8_locale yes

# Update interval in seconds
	update_interval 3
# Create own window instead of using desktop (required in nautilus)
	background yes
	own_window yes
	own_window_class Conky
    own_window_type normal
    own_window_transparent no
    own_window_hints below,sticky
	out_to_console no

# Use double buffering (reduces flicker, may not work for everyone)
	double_buffer yes
# 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

# Add spaces to keep things from moving about?  This only affects certain objects.
	use_spacer none

# Size of text area
	#minimum_size 5 5
	maximum_width 800

# Draw shades?
	draw_shades no
# Draw outlines?
	draw_outline no
# Draw borders
	draw_borders no
# graph options
	show_graph_scale no
	show_graph_range no
	draw_graph_borders yes

# Stippled borders?
	stippled_borders 0
# border margins
	border_margin 5
# border width
	border_width 1

# Text alignment
	alignment top_left

# Gap between borders of screen and text
# same thing as passing -x at command line
	gap_x 0
	gap_y 40

# Default colors and also border colors
	default_color green
	default_shade_color red
	default_outline_color white
	default_shade_color white
	own_window_colour black

	color1 white
	color2 red
	color3 blue
	color4 yellow
	color5 lightgrey
	color6 ff6000
	color7 ffa800
	color8 fffc2a
	color9 24fff0

TEXT
$alignc${color1}${font Nokia Sans:size=22}GaRy delaMer$font$color
${voffset -30}$alignr${color1}Uptime$color: $uptime_short$color 
$alignr${time %A %d %B %G} 
${goto 60}SYSTEME
${goto 20}${color1}Kernel$color${goto 115}: $sysname $kernel
${goto 20}${color1}Batterie$color${goto 115}: ${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'} %${goto 200}${color1}Température$color : ${execi 3 cat /sys/class/power_supply/bq27200-0/temp} °C
${goto 20}${color1}CPU $machine$color${goto 115}: $cpu %${goto 200}${color1}Fréquence$color   : $freq MHz
${goto 20}${cpugraph 50,370 ffcc00 ff0000 -t}
${goto 20}${color1}RAM$color${goto 115}: $memperc % ${goto 200}$mem / $memmax
${goto 20}${membar 10,370}
${goto 20}${color1}SWAP$color${goto 115}: $swapperc % ${goto 200}$swap / $swapmax
${goto 20}${swapbar 10,370}
${goto 60}SYSTEME de FICHIER
${goto 20}${color1}Root$color${goto 115}: ${fs_free_perc /} %${goto 200} ${fs_free /} / ${fs_size /}
${goto 20}$color6${fs_bar 10,370 /}
${goto 20}${color1}Home$color${goto 115}: ${fs_free_perc /home} %${goto 200} ${fs_free /home} / ${fs_size /home}
${goto 20}$color7${fs_bar 10,370 /home}
${goto 20}${color1}MyDocs$color${goto 115}: ${if_mounted /home/user/MyDocs}${fs_free_perc /home/user/MyDocs} %${goto 200} ${fs_free /home/user/MyDocs} / ${fs_size /home/user/MyDocs}$else${color2}Non montée$color$endif
${goto 20}${if_mounted /home/user/MyDocs}$color8${fs_bar 10,370 /home/user/MyDocs}$endif
${goto 20}${color1}MMC$color${goto 115}: ${if_mounted /media/mmc1}${fs_free_perc /home} %${goto 200} ${fs_free /home} / ${fs_size /home}$else${color2}Non montée$color$endif
${goto 20}${if_mounted /media/mmc1}$color9${fs_bar 10,370}$endif

${voffset -388}$color${goto 460}RESEAUX
${goto 420}${color1}IP Locale$color   : $alignr${if_up gprs0}${addr gprs0}$else${if_empty ${wireless_essid wlan0}}${color2}Non connecté$color$else${addr wlan0}$endif$endif 
${goto 420}${color1}IP Publique$color : $alignr${if_up gprs0}${texeci 3400 wget --timeout=10 -q -O - http://whatismyip.org/ | tail}$else${if_empty ${wireless_essid wlan0}}${color2}Non connecté$color$else${texeci 3400 wget --timeout=10 -q -O - http://whatismyip.org/ | tail}$endif$endif 
${goto 420}${color1}Dl$color : ${if_up gprs0}${downspeed gprs0} kB/s${goto 540}${color1}GPRS$color$else${if_empty ${wireless_essid wlan0}}${color2}Non connecté$color$else${downspeed wlan0} kB/s${goto 540}${color1}Wifi$color : ${wireless_essid wlan0}$endif$endif
${goto 420}${if_up gprs0}${downspeedgraph gprs0 45,370 ffcc00 ff0000 -t}$else${if_empty ${wireless_essid wlan0}}$else${downspeedgraph wlan0 45,370 ffcc00 ff0000 -t}$endif$endif
${goto 420}${color1}Up$color : ${if_up gprs0}${upspeed gprs0} kB/s$else${if_empty ${wireless_essid wlan0}}${color2}Non connecté${voffset 82}$color$else${upspeed wlan0} kB/s${goto 540}${color1}Rate$color : ${wireless_bitrate wlan0} ${color1}Qualité$color : ${wireless_link_qual_perc wlan0}%$endif$endif
${goto 420}${if_up gprs0}${upspeedgraph gprs0 45,370 ffcc00 ff0000 -t}$else${if_empty ${wireless_essid wlan0}}$else${upspeedgraph wlan0 45,370 ffcc00 ff0000 -t}$endif$endif
${goto 460}PROCESSUS $processes} En cours $running_processes
${goto 420}${color1}NOM                    PID   CPU%   MEM%
${goto 420}$color6${top name 1}      ${top pid 1} ${top cpu 1} ${top mem 1}
${goto 420}$color7${top name 2}      ${top pid 2} ${top cpu 2} ${top mem 2}
${goto 420}$color7${top name 3}      ${top pid 3} ${top cpu 3} ${top mem 3}
${goto 420}$color8${top name 4}      ${top pid 4} ${top cpu 4} ${top mem 4}
${goto 420}$color8${top name 5}      ${top pid 5} ${top cpu 5} ${top mem 5}
${goto 420}$color9${top name 6}      ${top pid 6} ${top cpu 6} ${top mem 6}
${goto 420}$color9${top name 7}      ${top pid 7} ${top cpu 7} ${top mem 7}$color

${voffset -377}$color${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|
${voffset -3}${goto 400}|

${voffset -394}${goto 0}_______${goto 120}______________________________________${goto 520}_______________________________
${voffset 190}${goto 0}_______${goto 220}___________________________${goto 675}_________________________
Attached Images
 
 

The Following 7 Users Say Thank You to GaRy delaMEr For This Useful Post: