Tuesday, April 23, 2013

One more simple Conky in the linux world

How to set a up a simple Conky telling you how much RAM, CPU and battery used?
Comment paramétrer un conky tout simple qui donne la quantité de RAM, CPU et de Batterie utilisés?

1/ what is Conky / c'est quoi Conky ?
clic Heeere ;)

2/ How to install / Comment l'installer ?
Ubuntu/Mint : 
sudo apt-get install conky-all

3/ What to do now / Que faire ensuite ?
create a .conkyrc file in /home/username

4/ fill it up with some stuff / remplir avec quelques lignes

You may need to play with commented lines (in window settings) to make the Conky correctly be displayed : 
Vous pourriez devoir jouer avec les lignes commentées (dans "window settings") pour que Conky soit correctement affiché : 
#window settings
own_window yes
#own_window_type desktop
#own_window_type normal
own_window_transparent yes
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window_hints undecorate,sticky,below

border_inner_margin 0
border_outer_margin 0

#position and size
alignment top_right
gap_x 10
gap_y 30
maximum_width 200
minimum_size 200 450

#font settings
use_xft yes
xftfont caviar dreams:size=8
override_utf8_locale yes
xftalpha 0.5
uppercase no

#global settings
update_interval 1
double_buffer yes

#color settings
default_color FFFFFF
color1 FF0000
color2 FF5F00
color3 0000FF
color4 0073FF
color5 0BAE07


mem: $mem/$memmax
${color5}${membar 5 80}${color}
cores: ${cpu 0} % ${acpitemp}°C
${color1}${cpubar cpu 1 5 80}
${color2}${cpubar cpu 2 5 80}
${color3}${cpubar cpu 3 5 80}
${color4}${cpubar cpu 4 5 80}${color}
#${cpugraph cpu 0 20 80 -l}

battery: ${battery}
#other options for battery
#battery: ${battery_percent}% 

5/ enjoy : 

6/ there a lot of more complete and complicated Conky, most using Lua:
Il y a énormément de Conky plus complets et plus complexes, la plupart utilisant Lua :

some examples / quelques exemples :