Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#276 Le 09/08/2007, à 17:39

jajaX

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

farnsworth a écrit :

ah bah vi effectivement alors... ah oui j'ai trouve un truc qu'on peut pas faire avec: ajuster la vitesse de rotation du ventilo (ouaip bon, meme si je me sert pas de cette fonction ca pourrait etre utile big_smile)
Mais je vais quand meme modifier mon script tu as raison, nvclock c'est pas un outil nvidia je crois alors que nvidia-settings ca vient avec les drivers si je ne m'abuse, donc c'est pas plus mal.
par contre si tu remplaces ton awk '{print $4}' par awk '{printf("%i", $4)}' tu n'auras plus de '.' apres la valeur de temperature.

content d'aider smile

merci pour le "point", je l'ai aussi dans la commande de mon thème superkaramba roll


@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne

#277 Le 10/08/2007, à 18:46

MrSpoke

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Voila mon conky:
9290a737f8987b727fd751b1f6166.png
Les .conkyrc:
.conkyrcgen

#####################
### CONFIGURATION ###
#####################
###D'apres MrSpoke###
### GENERAL ########################################
##Conky en arriere plan yes/no##
background yes

##Double buffer yes/no##
#Enleve clignotement,ne marche pas toujour#
double_buffer no

##Soustraire les buffers de la memoire utilisé?##
no_buffers yes

##Afficher tout sur la console##
#out_to_console no

##Nombre d'echantillon pour moyenne cpu##
#Mettre a 1 pour desactiver le moyennage#
cpu_avg_samples 2

##Nombre d'echantillon pour moyenne des données internet##
#Mettre a 1 pour desactiver le moyennage#
net_avg_samples 2
####################################################

### TEXTE ##########################################
##Alignement du texte##
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

##Espace entre le bord de l'ecran et le texte##
#Horizotalement#
gap_x 6
#Verticalement#
gap_y 30

##Marge aux bords##
border_margin 4

##Largeur des bords##
border_width 1

##Tracer les bords de texte?##
draw_borders no

##Tracer les bords de graph?##
#draw_graph_border yes

##Tracer les contours?##
draw_outline no

##Tracer les ombres?##
draw_shades yes

##Couleurs par defaut##
default_color white
#Ombres#
default_shade_color black
#Contours#
default_outline_color white

##Bords en pointillé?##
#stippled_borders 8
####################################################

### FENETRE ########################################
##Dimension fenetre##
#Maximum (largeur)#
maximum_width 132
#Minimum (largeur,hauteur)#
minimum_size 132 10

##Créer une fenetre pour Conky yes/no##
own_window no

##Fenetre pseudo-transparente yes/no##
#own_window_transparent yes

##Type de fenetre (normal,desktop,override)##
#own_window_type desktop

##Couleur fenetre !!Si transparence desactivé!!##
#own_window_colour
####################################################

### RAFRAICHISSEMENT ###############################
##Rafraichissement (seconde)##
update_interval 3.0

##Nombre de raffraichissement de Conky avant de quitter##
#Mettre à 0 pour ne pas l'arreter#
total_run_times 0
####################################################

### FORMAT DU TEXTE ################################
##Majuscule (pour tout le texte)##
uppercase no

##Ajoute des espaces pour empecher CERTAIN elements de bouger##
use_spacer yes

##Utiliser Xft?##
use_xft yes

##Texte alpha Xft est utilisé##
xftalpha 0.8

##Police Xft##
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8

##Police X quand Xft est desactivé##
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

##Forcer UTF8? (UTF8 requiert Xft)##
override_utf8_locale yes
####################################################

### VARIABLES ######################################
##Variable utilisable dans 'TEXT'##
#      Variable         Arguments                  Description                

# 	addr              (interface)   IP address for an interface
# 	acpiacadapter                   ACPI ac adapter state.                   
# 	acpifan                         ACPI fan state                           
# 	acpitemp                        ACPI temperature.                        
# 	adt746xcpu                      CPU temperature from therm_adt746x       
# 	adt746xfan                      Fan speed from therm_adt746x             
# 	alignr            (num)         Right-justify text, with space of N
# 	alignc                          Align text to centre
# 	battery           (num)         Remaining capasity in ACPI or APM        
# 					battery. ACPI battery number can be      
# 					given as argument (default is BAT0).     
# 	buffers                         Amount of memory buffered                
# 	cached                          Amount of memory cached                  
# 	color             (color)       Change drawing color to color            
# 	cpu                             CPU usage in percents                    
# 	cpubar            (height)      Bar that shows CPU usage, height is      
# 					bar's height in pixels                 
# 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# 					CPU usage graph, with optional colours in hex,
# 					minus the #.
# 	downspeed         net           Download speed in kilobytes              
# 	downspeedf        net           Download speed in kilobytes with one     
# 					decimal                                  
# 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# 					Download speed graph, colours defined in
# 					hex, minus the #.
# 	exec              shell command Executes a shell command and displays    
# 					the output in conky. warning: this      
# 					takes a lot more resources than other    
# 					variables. I'd recommend coding wanted   
# 					behaviour in C and posting a patch :-).  
# 	execbar           shell command Same as exec, except if the first value
# 					return is a value between 0-100, it
# 					will use that number for a bar.
# 					The size for the bar is currently fixed,
# 					but that may change in the future.
# 	execgraph         shell command Same as execbar, but graphs values
# 	execi             interval, shell command
#  					Same as exec but with specific interval. 
# 					Interval can't be less than              
# 					update_interval in configuration.        
#	font		  font		Specify a different font.  Only applies
#					to one line.
# 	fs_bar            (height), (fs)Bar that shows how much space is used on 
# 					a file system. height is the height in   
# 					pixels. fs is any file on that file      
# 					system.                                  
# 	fs_free           (fs)          Free space on a file system available    
# 					for users.                               
# 	fs_free_perc      (fs)          Free percentage of space on a file       
# 					system available for users.              
# 	fs_size           (fs)          File system size                         
# 	fs_used           (fs)          File system used space                   
# 	hr                (height)      Horizontal line, height is the height in 
# 					pixels                                   
# 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
# 					may be omitted if you have only one I2C  
# 					device. type is either in (or vol)       
# 					meaning voltage, fan meaning fan or
# 					temp/tempf (first in C, second in F)
# 					meaning temperature. n is number of the  
# 					sensor. See /sys/bus/i2c/devices/ on     
# 					your local computer.                     
# 	if_running        (process)     if PROCESS is running, display
# 					everything if_running and the matching $endif
# 	if_existing       (file)        if FILE exists, display everything between
# 					if_existing and the matching $endif
# 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# 					if_mounted and the matching $endif
# 	else                            Text to show if any of the above are not true
# 	kernel                          Kernel version                          
# 	linkstatus        (interface)   Get the link status for wireless connections
# 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
# 					minute, 2 for past 5 minutes and 3 for   
# 					past 15 minutes.                         
# 	machine                         Machine, i686 for example                
# 	mails                           Mail count in mail spool. You can use    
# 					program like fetchmail to get mails from 
# 					some server using your favourite         
# 					protocol. See also new_mails.            
# 	mem                             Amount of memory in use                  
# 	membar            (height)      Bar that shows amount of memory in use   
# 	memmax                          Total amount of memory                   
# 	memperc                         Percentage of memory in use
# 	
# 	metar_ob_time
# 	metar_temp
# 	metar_tempf                     Temp in F
# 	metar_windchill
# 	metar_dew_point                 There are a bunch of these
# 	metar_rh                        and they are self-explanatory
# 	metar_windspeed
# 	metar_winddir
# 	metar_swinddir
# 	metar_cloud
# 	metar_u2d_time
# 	
# 	ml_upload_counter               total session upload in mb
# 	ml_download_counter             total session download in mb
# 	ml_nshared_files                number of shared files
# 	ml_shared_counter               total session shared in mb, buggy
# 					in some mldonkey versions
# 	ml_tcp_upload_rate              tcp upload rate in kb/s
# 	ml_tcp_download_rate            tcp download rate in kb/s
# 	ml_udp_upload_rate              udp upload rate in kb/s
# 	ml_udp_download_rate            udp download rate in kb/s
# 	ml_ndownloaded_files            number of completed files
# 	ml_ndownloading_files           number of downloading files
# 	
# 	mpd_artist			Artist in current MPD song
# 					(must be enabled at compile)
# 	mpd_album			Album in current MPD song
# 	mpd_bar           (height)      Bar of mpd's progress
# 	mpd_bitrate                     Bitrate of current song
# 	mpd_status                      Playing, stopped, et cetera.
# 	mpd_title			Title of current MPD song
# 	mpd_vol				MPD's volume
# 	mpd_elapsed                     Song's elapsed time
# 	mpd_length                      Song's length
# 	mpd_percent                     Percent of song's progress
# 	new_mails                       Unread mail count in mail spool.         
# 	nodename                        Hostname                                 
# 	outlinecolor      (color)       Change outline color                     
# 	pre_exec          shell command Executes a shell command one time before 
# 					conky displays anything and puts output 
# 					as text.                                 
# 	processes                       Total processes (sleeping and running)   
# 	running_processes               Running processes (not sleeping),        
# 					requires Linux 2.6                       
# 	shadecolor        (color)       Change shading color                     
# 	stippled_hr       (space),      Stippled (dashed) horizontal line        
# 			(height)        
# 	swapbar           (height)      Bar that shows amount of swap in use     
# 	swap                            Amount of swap in use                    
# 	swapmax                         Total amount of swap                     
# 	swapperc                        Percentage of swap in use                
# 	sysname                         System name, Linux for example           
# 	offset            pixels        Move text over by N pixels
# 	tail              logfile, lines (interval)
# 					Displays last N lines of supplied text
# 					text file.  If interval is not supplied,
# 					Conky assumes 2x Conky's interval.
# 					Max of 30 lines.
# 					Max of 30 lines can be displayed.
# 	time              (format)      Local time, see man strftime to get more 
# 					information about format                 
# 	totaldown         net           Total download, overflows at 4 GB on     
# 					Linux with 32-bit arch and there doesn't 
# 					seem to be a way to know how many times  
# 					it has already done that before conky   
# 					has started.                            
# 	top               type, num     This takes arguments in the form:
# 					top <name> <number>
# 					Basically, processes are ranked from 
# 					highest to lowest in terms of cpu
# 					usage, which is what <num> represents.
# 					The types are: "name", "pid", "cpu", and
# 					"mem".
# 					There can be a max of 10 processes listed.
# 	top_mem           type, num     Same as top, except sorted by mem usage
# 					instead of cpu
# 	totalup           net           Total upload, this one too, may overflow 
# 	updates                         Number of updates (for debugging)        
# 	upspeed           net           Upload speed in kilobytes                
# 	upspeedf          net           Upload speed in kilobytes with one       
# 					decimal                                  
# 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# 					Upload speed graph, colours defined in
# 					hex, minus the #.
# 	uptime                          Uptime                                   
# 	uptime_short                    Uptime in a shorter format               

##Les variable sont donnée suivant le format suivant: $variable ou ${variable argument1 argument2 ...}##

##Les elements apres "TEXT" sont affiché a l'ecran##
TEXT
${color CB2700}${stippled_hr 44 1}
${color slate grey}Heure:    ${color }${alignr 2}${time %H:%M:%S}
${color slate grey}UpTime: ${color }${alignr 2}$uptime
${color slate grey}Kernel:${color }${alignr 2}$kernel
${color slate grey}Batterie:${color }${alignr 2}${battery C171}
${color CB2700}${stippled_hr 44 1}
${color CB2700}${stippled_hr 44 1}
${color slate grey}CPU:${color 0fff00} $cpu% ${alignr 2}${color slate grey}temp.: ${color ff0000}${acpitemp}°C
${color }${cpugraph 20,130 000000 0fff00}
${color slate grey}Processus: ${color }$processes  
${color slate grey}${alignc}En cour:   ${color }$running_processes

${color slate grey}Highest CPU:
${color #ddaa00}    ${top name 1}${top cpu 1}
${color lightgrey}    ${top name 2}${top cpu 2}
${color lightgrey}    ${top name 3}${top cpu 3}
${color lightgrey}    ${top name 4}${top cpu 4}

${color slate grey}Highest MEM:
${color #ddaa00}    ${top_mem name 1}${top_mem mem 1}
${color lightgrey}    ${top_mem name 2}${top_mem mem 2}
${color lightgrey}    ${top_mem name 3}${top_mem mem 3}
${color lightgrey}    ${top_mem name 4}${top_mem mem 4}
${color CB2700}${stippled_hr 44 1}
${color CB2700}${stippled_hr 44 1}
${color slate grey}Espace disque:
${color slate grey}  Linux:
${color }  ${fs_free /}/${fs_size /}
${color 0fff00}${fs_bar 3,130 /}
${color slate grey}  Documents et fichiers:
${color }  ${fs_free /}/${fs_size /media/sda6}
${color 0fff00}${fs_bar 3,130 /media/sda6}
${color slate grey}  Win XP:
${color }  ${fs_free /}/${fs_size /media/sda1}
${color 0fff00}${fs_bar 3,130 /media/sda1}
${if_mounted /media/LACIE_}${color slate grey}  HD Externe:
${color }  ${fs_free /}/${fs_size /media/LACIE_}
${color 0fff00}${fs_bar 3,130 /media/LACIE_}$endif

${color slate grey}Memoire:    ${color } $memperc%
${color }  $mem/$memmax
${color 0fff00}${membar 3,130}
${color slate grey}Swap:    ${color } $swapperc%
${color }  $swap/$swapmax
${color 0fff00}${swapbar 3,130}
${color CB2700}${stippled_hr 44 1}

.conkyrcnet

#####################
### CONFIGURATION ###
#####################
###D'apres MrSpoke###
### GENERAL ########################################
##Conky en arriere plan yes/no##
background yes

##Double buffer yes/no##
#Enleve clignotement,ne marche pas toujour#
double_buffer no

##Soustraire les buffers de la memoire utilisé?##
no_buffers yes

##Afficher tout sur la console##
#out_to_console no

##Nombre d'echantillon pour moyenne cpu##
#Mettre a 1 pour desactiver le moyennage#
cpu_avg_samples 2

##Nombre d'echantillon pour moyenne des données internet##
#Mettre a 1 pour desactiver le moyennage#
net_avg_samples 2
####################################################

### TEXTE ##########################################
##Alignement du texte##
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

##Espace entre le bord de l'ecran et le texte##
#Horizotalement#
gap_x 6
#Verticalement#
gap_y 30

##Marge aux bords##
border_margin 4

##Largeur des bords##
border_width 1

##Tracer les bords de texte?##
draw_borders yes

##Tracer les bords de graph?##
#draw_graph_border yes

##Tracer les contours?##
draw_outline no

##Tracer les ombres?##
draw_shades yes

##Couleurs par defaut##
default_color CB2700
#Ombres#
default_shade_color black
#Contours#
default_outline_color white

##Bords en pointillé?##
stippled_borders 1
####################################################

### FENETRE ########################################
##Dimension fenetre##
#Maximum (largeur)#
maximum_width 132
#Minimum (largeur,hauteur)#
minimum_size 132 10

##Créer une fenetre pour Conky yes/no##
own_window no

##Fenetre pseudo-transparente yes/no##
#own_window_transparent yes

##Type de fenetre (normal,desktop,override)##
#own_window_type desktop

##Couleur fenetre !!Si transparence desactivé!!##
#own_window_colour
####################################################

### RAFRAICHISSEMENT ###############################
##Rafraichissement (seconde)##
update_interval 3.0

##Nombre de raffraichissement de Conky avant de quitter##
#Mettre à 0 pour ne pas l'arreter#
total_run_times 0
####################################################

### FORMAT DU TEXTE ################################
##Majuscule (pour tout le texte)##
uppercase no

##Ajoute des espaces pour empecher CERTAIN elements de bouger##
use_spacer yes

##Utiliser Xft?##
use_xft yes

##Texte alpha Xft est utilisé##
xftalpha 0.8

##Police Xft##
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8
#xftfont Radio Space-8.5

##Police X quand Xft est desactivé##
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

##Forcer UTF8? (UTF8 requiert Xft)##
override_utf8_locale yes
####################################################

### VARIABLES ######################################
##Variable utilisable dans 'TEXT'##
#      Variable         Arguments                  Description                

# 	addr              (interface)   IP address for an interface
# 	acpiacadapter                   ACPI ac adapter state.                   
# 	acpifan                         ACPI fan state                           
# 	acpitemp                        ACPI temperature.                        
# 	adt746xcpu                      CPU temperature from therm_adt746x       
# 	adt746xfan                      Fan speed from therm_adt746x             
# 	alignr            (num)         Right-justify text, with space of N
# 	alignc                          Align text to centre
# 	battery           (num)         Remaining capasity in ACPI or APM        
# 					battery. ACPI battery number can be      
# 					given as argument (default is BAT0).     
# 	buffers                         Amount of memory buffered                
# 	cached                          Amount of memory cached                  
# 	color             (color)       Change drawing color to color            
# 	cpu                             CPU usage in percents                    
# 	cpubar            (height)      Bar that shows CPU usage, height is      
# 					bar's height in pixels                 
# 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# 					CPU usage graph, with optional colours in hex,
# 					minus the #.
# 	downspeed         net           Download speed in kilobytes              
# 	downspeedf        net           Download speed in kilobytes with one     
# 					decimal                                  
# 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# 					Download speed graph, colours defined in
# 					hex, minus the #.
# 	exec              shell command Executes a shell command and displays    
# 					the output in conky. warning: this      
# 					takes a lot more resources than other    
# 					variables. I'd recommend coding wanted   
# 					behaviour in C and posting a patch :-).  
# 	execbar           shell command Same as exec, except if the first value
# 					return is a value between 0-100, it
# 					will use that number for a bar.
# 					The size for the bar is currently fixed,
# 					but that may change in the future.
# 	execgraph         shell command Same as execbar, but graphs values
# 	execi             interval, shell command
#  					Same as exec but with specific interval. 
# 					Interval can't be less than              
# 					update_interval in configuration.        
#	font		  font		Specify a different font.  Only applies
#					to one line.
# 	fs_bar            (height), (fs)Bar that shows how much space is used on 
# 					a file system. height is the height in   
# 					pixels. fs is any file on that file      
# 					system.                                  
# 	fs_free           (fs)          Free space on a file system available    
# 					for users.                               
# 	fs_free_perc      (fs)          Free percentage of space on a file       
# 					system available for users.              
# 	fs_size           (fs)          File system size                         
# 	fs_used           (fs)          File system used space                   
# 	hr                (height)      Horizontal line, height is the height in 
# 					pixels                                   
# 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
# 					may be omitted if you have only one I2C  
# 					device. type is either in (or vol)       
# 					meaning voltage, fan meaning fan or
# 					temp/tempf (first in C, second in F)
# 					meaning temperature. n is number of the  
# 					sensor. See /sys/bus/i2c/devices/ on     
# 					your local computer.                     
# 	if_running        (process)     if PROCESS is running, display
# 					everything if_running and the matching $endif
# 	if_existing       (file)        if FILE exists, display everything between
# 					if_existing and the matching $endif
# 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# 					if_mounted and the matching $endif
# 	else                            Text to show if any of the above are not true
# 	kernel                          Kernel version                          
# 	linkstatus        (interface)   Get the link status for wireless connections
# 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
# 					minute, 2 for past 5 minutes and 3 for   
# 					past 15 minutes.                         
# 	machine                         Machine, i686 for example                
# 	mails                           Mail count in mail spool. You can use    
# 					program like fetchmail to get mails from 
# 					some server using your favourite         
# 					protocol. See also new_mails.            
# 	mem                             Amount of memory in use                  
# 	membar            (height)      Bar that shows amount of memory in use   
# 	memmax                          Total amount of memory                   
# 	memperc                         Percentage of memory in use
# 	
# 	metar_ob_time
# 	metar_temp
# 	metar_tempf                     Temp in F
# 	metar_windchill
# 	metar_dew_point                 There are a bunch of these
# 	metar_rh                        and they are self-explanatory
# 	metar_windspeed
# 	metar_winddir
# 	metar_swinddir
# 	metar_cloud
# 	metar_u2d_time
# 	
# 	ml_upload_counter               total session upload in mb
# 	ml_download_counter             total session download in mb
# 	ml_nshared_files                number of shared files
# 	ml_shared_counter               total session shared in mb, buggy
# 					in some mldonkey versions
# 	ml_tcp_upload_rate              tcp upload rate in kb/s
# 	ml_tcp_download_rate            tcp download rate in kb/s
# 	ml_udp_upload_rate              udp upload rate in kb/s
# 	ml_udp_download_rate            udp download rate in kb/s
# 	ml_ndownloaded_files            number of completed files
# 	ml_ndownloading_files           number of downloading files
# 	
# 	mpd_artist			Artist in current MPD song
# 					(must be enabled at compile)
# 	mpd_album			Album in current MPD song
# 	mpd_bar           (height)      Bar of mpd's progress
# 	mpd_bitrate                     Bitrate of current song
# 	mpd_status                      Playing, stopped, et cetera.
# 	mpd_title			Title of current MPD song
# 	mpd_vol				MPD's volume
# 	mpd_elapsed                     Song's elapsed time
# 	mpd_length                      Song's length
# 	mpd_percent                     Percent of song's progress
# 	new_mails                       Unread mail count in mail spool.         
# 	nodename                        Hostname                                 
# 	outlinecolor      (color)       Change outline color                     
# 	pre_exec          shell command Executes a shell command one time before 
# 					conky displays anything and puts output 
# 					as text.                                 
# 	processes                       Total processes (sleeping and running)   
# 	running_processes               Running processes (not sleeping),        
# 					requires Linux 2.6                       
# 	shadecolor        (color)       Change shading color                     
# 	stippled_hr       (space),      Stippled (dashed) horizontal line        
# 			(height)        
# 	swapbar           (height)      Bar that shows amount of swap in use     
# 	swap                            Amount of swap in use                    
# 	swapmax                         Total amount of swap                     
# 	swapperc                        Percentage of swap in use                
# 	sysname                         System name, Linux for example           
# 	offset            pixels        Move text over by N pixels
# 	tail              logfile, lines (interval)
# 					Displays last N lines of supplied text
# 					text file.  If interval is not supplied,
# 					Conky assumes 2x Conky's interval.
# 					Max of 30 lines.
# 					Max of 30 lines can be displayed.
# 	time              (format)      Local time, see man strftime to get more 
# 					information about format                 
# 	totaldown         net           Total download, overflows at 4 GB on     
# 					Linux with 32-bit arch and there doesn't 
# 					seem to be a way to know how many times  
# 					it has already done that before conky   
# 					has started.                            
# 	top               type, num     This takes arguments in the form:
# 					top <name> <number>
# 					Basically, processes are ranked from 
# 					highest to lowest in terms of cpu
# 					usage, which is what <num> represents.
# 					The types are: "name", "pid", "cpu", and
# 					"mem".
# 					There can be a max of 10 processes listed.
# 	top_mem           type, num     Same as top, except sorted by mem usage
# 					instead of cpu
# 	totalup           net           Total upload, this one too, may overflow 
# 	updates                         Number of updates (for debugging)        
# 	upspeed           net           Upload speed in kilobytes                
# 	upspeedf          net           Upload speed in kilobytes with one       
# 					decimal                                  
# 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# 					Upload speed graph, colours defined in
# 					hex, minus the #.
# 	uptime                          Uptime                                   
# 	uptime_short                    Uptime in a shorter format               

##Les variable sont donnée suivant le format suivant: $variable ou ${variable argument1 argument2 ...}##

##Les elements apres "TEXT" sont affiché a l'ecran##
TEXT
${color slate grey}NETWORKS
${color white}IP distante: ${color }${execi 300 wget -O - http://ip.tupeux.com | tail}

${color slate grey}Ethernet:
${color FFFFFF}IP:   ${color 0AB000}${addr eth0}
${color FFFFFF}Up: ${color 0fff00}${upspeed eth0} k/s
${color FFFFFF}${upspeedgraph eth0 15,130 000000 0fff00}
${color FFFFFF}Down: ${color 0fff00}${downspeed eth0}k/s${color}
${color FFFFFF}${downspeedgraph eth0 15,130 000000 0fff00}

${color slate grey}Wifi:    ${color FFFFFF}signal${linkstatus eth1}%
${color FFFFFF}IP:   ${color 0AB000}${addr eth1}
${color FFFFFF}Up: ${color 0fff00}${upspeed eth1} k/s
${color FFFFFF}${upspeedgraph eth1 15,130 000000 0fff00}
${color FFFFFF}Down: ${color 0fff00}${downspeed eth1}k/s${color}
${color FFFFFF}${downspeedgraph eth1 15,130 000000 0fff00}

${color slate grey}Port(s) ouvert(s): ${color FFFFFF}${tcp_portmon 1 65535 count}
${color FFFFFF} ${tcp_portmon 1 65535 rhost 0}
$alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1}
$alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2}
$alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3}
$alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4}
$alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5}
$alignr${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6}
$alignr${tcp_portmon 1 65535 lservice 6}

.conkyrcamrk

#####################
### CONFIGURATION ###
#####################
###D'apres MrSpoke###
### GENERAL ########################################
##Conky en arriere plan yes/no##
background yes

##Double buffer yes/no##
#Enleve clignotement,ne marche pas toujour#
double_buffer no

##Soustraire les buffers de la memoire utilisé?##
no_buffers yes

##Afficher tout sur la console##
#out_to_console no

##Nombre d'echantillon pour moyenne cpu##
#Mettre a 1 pour desactiver le moyennage#
cpu_avg_samples 1

##Nombre d'echantillon pour moyenne des données internet##
#Mettre a 1 pour desactiver le moyennage#
net_avg_samples 1
####################################################

### TEXTE ##########################################
##Alignement du texte##
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right

##Espace entre le bord de l'ecran et le texte##
#Horizotalement#
gap_x 8
#Verticalement#
gap_y 33

##Marge aux bords##
border_margin 8

##Largeur des bords##
border_width 1

##Tracer les bords de texte?##
draw_borders yes

##Tracer les bords de graph?##
#draw_graph_border yes

##Tracer les contours?##
draw_outline no

##Tracer les ombres?##
draw_shades yes

##Couleurs par defaut##
default_color ffb500
#Ombres#
default_shade_color black
#Contours#
default_outline_color white

##Bords en pointillé?##
#stippled_borders 1
####################################################

### FENETRE ########################################
##Dimension fenetre##
#Maximum (largeur)#
maximum_width 132
#Minimum (largeur,hauteur)#
minimum_size 132 10

##Créer une fenetre pour Conky yes/no##
own_window no

##Fenetre pseudo-transparente yes/no##
#own_window_transparent yes

##Type de fenetre (normal,desktop,override)##
#own_window_type desktop

##Couleur fenetre !!Si transparence desactivé!!##
#own_window_colour
####################################################

### RAFRAICHISSEMENT ###############################
##Rafraichissement (seconde)##
update_interval 3.0

##Nombre de raffraichissement de Conky avant de quitter##
#Mettre à 0 pour ne pas l'arreter#
total_run_times 0
####################################################

### FORMAT DU TEXTE ################################
##Majuscule (pour tout le texte)##
uppercase no

##Ajoute des espaces pour empecher CERTAIN elements de bouger##
use_spacer no

##Utiliser Xft?##
use_xft yes

##Texte alpha Xft est utilisé##
xftalpha 0.8

##Police Xft##
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8

##Police X quand Xft est desactivé##
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

##Forcer UTF8? (UTF8 requiert Xft)##
override_utf8_locale yes
####################################################

### VARIABLES ######################################
##Variable utilisable dans 'TEXT'##
#      Variable         Arguments                  Description                

# 	addr              (interface)   IP address for an interface
# 	acpiacadapter                   ACPI ac adapter state.                   
# 	acpifan                         ACPI fan state                           
# 	acpitemp                        ACPI temperature.                        
# 	adt746xcpu                      CPU temperature from therm_adt746x       
# 	adt746xfan                      Fan speed from therm_adt746x             
# 	alignr            (num)         Right-justify text, with space of N
# 	alignc                          Align text to centre
# 	battery           (num)         Remaining capasity in ACPI or APM        
# 					battery. ACPI battery number can be      
# 					given as argument (default is BAT0).     
# 	buffers                         Amount of memory buffered                
# 	cached                          Amount of memory cached                  
# 	color             (color)       Change drawing color to color            
# 	cpu                             CPU usage in percents                    
# 	cpubar            (height)      Bar that shows CPU usage, height is      
# 					bar's height in pixels                 
# 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# 					CPU usage graph, with optional colours in hex,
# 					minus the #.
# 	downspeed         net           Download speed in kilobytes              
# 	downspeedf        net           Download speed in kilobytes with one     
# 					decimal                                  
# 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# 					Download speed graph, colours defined in
# 					hex, minus the #.
# 	exec              shell command Executes a shell command and displays    
# 					the output in conky. warning: this      
# 					takes a lot more resources than other    
# 					variables. I'd recommend coding wanted   
# 					behaviour in C and posting a patch :-).  
# 	execbar           shell command Same as exec, except if the first value
# 					return is a value between 0-100, it
# 					will use that number for a bar.
# 					The size for the bar is currently fixed,
# 					but that may change in the future.
# 	execgraph         shell command Same as execbar, but graphs values
# 	execi             interval, shell command
#  					Same as exec but with specific interval. 
# 					Interval can't be less than              
# 					update_interval in configuration.        
#	font		  font		Specify a different font.  Only applies
#					to one line.
# 	fs_bar            (height), (fs)Bar that shows how much space is used on 
# 					a file system. height is the height in   
# 					pixels. fs is any file on that file      
# 					system.                                  
# 	fs_free           (fs)          Free space on a file system available    
# 					for users.                               
# 	fs_free_perc      (fs)          Free percentage of space on a file       
# 					system available for users.              
# 	fs_size           (fs)          File system size                         
# 	fs_used           (fs)          File system used space                   
# 	hr                (height)      Horizontal line, height is the height in 
# 					pixels                                   
# 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
# 					may be omitted if you have only one I2C  
# 					device. type is either in (or vol)       
# 					meaning voltage, fan meaning fan or
# 					temp/tempf (first in C, second in F)
# 					meaning temperature. n is number of the  
# 					sensor. See /sys/bus/i2c/devices/ on     
# 					your local computer.                     
# 	if_running        (process)     if PROCESS is running, display
# 					everything if_running and the matching $endif
# 	if_existing       (file)        if FILE exists, display everything between
# 					if_existing and the matching $endif
# 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# 					if_mounted and the matching $endif
# 	else                            Text to show if any of the above are not true
# 	kernel                          Kernel version                          
# 	linkstatus        (interface)   Get the link status for wireless connections
# 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
# 					minute, 2 for past 5 minutes and 3 for   
# 					past 15 minutes.                         
# 	machine                         Machine, i686 for example                
# 	mails                           Mail count in mail spool. You can use    
# 					program like fetchmail to get mails from 
# 					some server using your favourite         
# 					protocol. See also new_mails.            
# 	mem                             Amount of memory in use                  
# 	membar            (height)      Bar that shows amount of memory in use   
# 	memmax                          Total amount of memory                   
# 	memperc                         Percentage of memory in use
# 	
# 	metar_ob_time
# 	metar_temp
# 	metar_tempf                     Temp in F
# 	metar_windchill
# 	metar_dew_point                 There are a bunch of these
# 	metar_rh                        and they are self-explanatory
# 	metar_windspeed
# 	metar_winddir
# 	metar_swinddir
# 	metar_cloud
# 	metar_u2d_time
# 	
# 	ml_upload_counter               total session upload in mb
# 	ml_download_counter             total session download in mb
# 	ml_nshared_files                number of shared files
# 	ml_shared_counter               total session shared in mb, buggy
# 					in some mldonkey versions
# 	ml_tcp_upload_rate              tcp upload rate in kb/s
# 	ml_tcp_download_rate            tcp download rate in kb/s
# 	ml_udp_upload_rate              udp upload rate in kb/s
# 	ml_udp_download_rate            udp download rate in kb/s
# 	ml_ndownloaded_files            number of completed files
# 	ml_ndownloading_files           number of downloading files
# 	
# 	mpd_artist			Artist in current MPD song
# 					(must be enabled at compile)
# 	mpd_album			Album in current MPD song
# 	mpd_bar           (height)      Bar of mpd's progress
# 	mpd_bitrate                     Bitrate of current song
# 	mpd_status                      Playing, stopped, et cetera.
# 	mpd_title			Title of current MPD song
# 	mpd_vol				MPD's volume
# 	mpd_elapsed                     Song's elapsed time
# 	mpd_length                      Song's length
# 	mpd_percent                     Percent of song's progress
# 	new_mails                       Unread mail count in mail spool.         
# 	nodename                        Hostname                                 
# 	outlinecolor      (color)       Change outline color                     
# 	pre_exec          shell command Executes a shell command one time before 
# 					conky displays anything and puts output 
# 					as text.                                 
# 	processes                       Total processes (sleeping and running)   
# 	running_processes               Running processes (not sleeping),        
# 					requires Linux 2.6                       
# 	shadecolor        (color)       Change shading color                     
# 	stippled_hr       (space),      Stippled (dashed) horizontal line        
# 			(height)        
# 	swapbar           (height)      Bar that shows amount of swap in use     
# 	swap                            Amount of swap in use                    
# 	swapmax                         Total amount of swap                     
# 	swapperc                        Percentage of swap in use                
# 	sysname                         System name, Linux for example           
# 	offset            pixels        Move text over by N pixels
# 	tail              logfile, lines (interval)
# 					Displays last N lines of supplied text
# 					text file.  If interval is not supplied,
# 					Conky assumes 2x Conky's interval.
# 					Max of 30 lines.
# 					Max of 30 lines can be displayed.
# 	time              (format)      Local time, see man strftime to get more 
# 					information about format                 
# 	totaldown         net           Total download, overflows at 4 GB on     
# 					Linux with 32-bit arch and there doesn't 
# 					seem to be a way to know how many times  
# 					it has already done that before conky   
# 					has started.                            
# 	top               type, num     This takes arguments in the form:
# 					top <name> <number>
# 					Basically, processes are ranked from 
# 					highest to lowest in terms of cpu
# 					usage, which is what <num> represents.
# 					The types are: "name", "pid", "cpu", and
# 					"mem".
# 					There can be a max of 10 processes listed.
# 	top_mem           type, num     Same as top, except sorted by mem usage
# 					instead of cpu
# 	totalup           net           Total upload, this one too, may overflow 
# 	updates                         Number of updates (for debugging)        
# 	upspeed           net           Upload speed in kilobytes                
# 	upspeedf          net           Upload speed in kilobytes with one       
# 					decimal                                  
# 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# 					Upload speed graph, colours defined in
# 					hex, minus the #.
# 	uptime                          Uptime                                   
# 	uptime_short                    Uptime in a shorter format             

##Les variable sont donnée suivant le format suivant: $variable ou ${variable argument1 argument2 ...}##

##Les elements apres "TEXT" sont affiché a l'ecran##
TEXT
${color }AmaroK${color white}
${alignc}${execi 10 ~/Conky/amaroconky.sh artist}
${alignc}${execi 10 ~/Conky/amaroconky.sh title}
${color }${execibar 1 ~/Conky/amaroconky.sh progress}${color white}
${alignc}"${execi 10 ~/Conky/amaroconky.sh album}"
${alignc}${execi 10 ~/Conky/amaroconky.sh year} - ${execi 10 ~/Conky/amaroconky.sh genre}

.conkyrcwthr

#####################
### CONFIGURATION ###
#####################
###D'apres MrSpoke###
### GENERAL ########################################
##Conky en arriere plan yes/no##
background yes

##Double buffer yes/no##
#Enleve clignotement,ne marche pas toujour#
double_buffer no

##Soustraire les buffers de la memoire utilisé?##
no_buffers yes

##Afficher tout sur la console##
#out_to_console no

##Nombre d'echantillon pour moyenne cpu##
#Mettre a 1 pour desactiver le moyennage#
cpu_avg_samples 2

##Nombre d'echantillon pour moyenne des données internet##
#Mettre a 1 pour desactiver le moyennage#
net_avg_samples 2
####################################################

### TEXTE ##########################################
##Alignement du texte##
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right

##Espace entre le bord de l'ecran et le texte##
#Horizotalement#
gap_x 6
#Verticalement#
gap_y 30

##Marge aux bords##
border_margin 4

##Largeur des bords##
border_width 1

##Tracer les bords de texte?##
draw_borders yes

##Tracer les bords de graph?##
#draw_graph_border yes

##Tracer les contours?##
draw_outline no

##Tracer les ombres?##
draw_shades yes

##Couleurs par defaut##
default_color FF752C
#Ombres#
default_shade_color black
#Contours#
default_outline_color white

##Bords en pointillé?##
#stippled_borders 8
####################################################

### FENETRE ########################################
##Dimension fenetre##
#Maximum (largeur)#
maximum_width 202
#Minimum (largeur,hauteur)#
minimum_size 202 10

##Créer une fenetre pour Conky yes/no##
own_window no

##Fenetre pseudo-transparente yes/no##
#own_window_transparent yes

##Type de fenetre (normal,desktop,override)##
#own_window_type desktop

##Couleur fenetre !!Si transparence desactivé!!##
#own_window_colour
####################################################

### RAFRAICHISSEMENT ###############################
##Rafraichissement (seconde)##
update_interval 3.0

##Nombre de raffraichissement de Conky avant de quitter##
#Mettre à 0 pour ne pas l'arreter#
total_run_times 0
####################################################

### FORMAT DU TEXTE ################################
##Majuscule (pour tout le texte)##
uppercase no

##Ajoute des espaces pour empecher CERTAIN elements de bouger##
use_spacer yes

##Utiliser Xft?##
use_xft yes

##Texte alpha Xft est utilisé##
xftalpha 0.8

##Police Xft##
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8

##Police X quand Xft est desactivé##
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

##Forcer UTF8? (UTF8 requiert Xft)##
override_utf8_locale yes
####################################################

### VARIABLES ######################################
##Variable utilisable dans 'TEXT'##
#      Variable         Arguments                  Description                

# 	addr              (interface)   IP address for an interface
# 	acpiacadapter                   ACPI ac adapter state.                   
# 	acpifan                         ACPI fan state                           
# 	acpitemp                        ACPI temperature.                        
# 	adt746xcpu                      CPU temperature from therm_adt746x       
# 	adt746xfan                      Fan speed from therm_adt746x             
# 	alignr            (num)         Right-justify text, with space of N
# 	alignc                          Align text to centre
# 	battery           (num)         Remaining capasity in ACPI or APM        
# 					battery. ACPI battery number can be      
# 					given as argument (default is BAT0).     
# 	buffers                         Amount of memory buffered                
# 	cached                          Amount of memory cached                  
# 	color             (color)       Change drawing color to color            
# 	cpu                             CPU usage in percents                    
# 	cpubar            (height)      Bar that shows CPU usage, height is      
# 					bar's height in pixels                 
# 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# 					CPU usage graph, with optional colours in hex,
# 					minus the #.
# 	downspeed         net           Download speed in kilobytes              
# 	downspeedf        net           Download speed in kilobytes with one     
# 					decimal                                  
# 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# 					Download speed graph, colours defined in
# 					hex, minus the #.
# 	exec              shell command Executes a shell command and displays    
# 					the output in conky. warning: this      
# 					takes a lot more resources than other    
# 					variables. I'd recommend coding wanted   
# 					behaviour in C and posting a patch :-).  
# 	execbar           shell command Same as exec, except if the first value
# 					return is a value between 0-100, it
# 					will use that number for a bar.
# 					The size for the bar is currently fixed,
# 					but that may change in the future.
# 	execgraph         shell command Same as execbar, but graphs values
# 	execi             interval, shell command
#  					Same as exec but with specific interval. 
# 					Interval can't be less than              
# 					update_interval in configuration.        
#	font		  font		Specify a different font.  Only applies
#					to one line.
# 	fs_bar            (height), (fs)Bar that shows how much space is used on 
# 					a file system. height is the height in   
# 					pixels. fs is any file on that file      
# 					system.                                  
# 	fs_free           (fs)          Free space on a file system available    
# 					for users.                               
# 	fs_free_perc      (fs)          Free percentage of space on a file       
# 					system available for users.              
# 	fs_size           (fs)          File system size                         
# 	fs_used           (fs)          File system used space                   
# 	hr                (height)      Horizontal line, height is the height in 
# 					pixels                                   
# 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
# 					may be omitted if you have only one I2C  
# 					device. type is either in (or vol)       
# 					meaning voltage, fan meaning fan or
# 					temp/tempf (first in C, second in F)
# 					meaning temperature. n is number of the  
# 					sensor. See /sys/bus/i2c/devices/ on     
# 					your local computer.                     
# 	if_running        (process)     if PROCESS is running, display
# 					everything if_running and the matching $endif
# 	if_existing       (file)        if FILE exists, display everything between
# 					if_existing and the matching $endif
# 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# 					if_mounted and the matching $endif
# 	else                            Text to show if any of the above are not true
# 	kernel                          Kernel version                          
# 	linkstatus        (interface)   Get the link status for wireless connections
# 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
# 					minute, 2 for past 5 minutes and 3 for   
# 					past 15 minutes.                         
# 	machine                         Machine, i686 for example                
# 	mails                           Mail count in mail spool. You can use    
# 					program like fetchmail to get mails from 
# 					some server using your favourite         
# 					protocol. See also new_mails.            
# 	mem                             Amount of memory in use                  
# 	membar            (height)      Bar that shows amount of memory in use   
# 	memmax                          Total amount of memory                   
# 	memperc                         Percentage of memory in use
# 	
# 	metar_ob_time
# 	metar_temp
# 	metar_tempf                     Temp in F
# 	metar_windchill
# 	metar_dew_point                 There are a bunch of these
# 	metar_rh                        and they are self-explanatory
# 	metar_windspeed
# 	metar_winddir
# 	metar_swinddir
# 	metar_cloud
# 	metar_u2d_time
# 	
# 	ml_upload_counter               total session upload in mb
# 	ml_download_counter             total session download in mb
# 	ml_nshared_files                number of shared files
# 	ml_shared_counter               total session shared in mb, buggy
# 					in some mldonkey versions
# 	ml_tcp_upload_rate              tcp upload rate in kb/s
# 	ml_tcp_download_rate            tcp download rate in kb/s
# 	ml_udp_upload_rate              udp upload rate in kb/s
# 	ml_udp_download_rate            udp download rate in kb/s
# 	ml_ndownloaded_files            number of completed files
# 	ml_ndownloading_files           number of downloading files
# 	
# 	mpd_artist			Artist in current MPD song
# 					(must be enabled at compile)
# 	mpd_album			Album in current MPD song
# 	mpd_bar           (height)      Bar of mpd's progress
# 	mpd_bitrate                     Bitrate of current song
# 	mpd_status                      Playing, stopped, et cetera.
# 	mpd_title			Title of current MPD song
# 	mpd_vol				MPD's volume
# 	mpd_elapsed                     Song's elapsed time
# 	mpd_length                      Song's length
# 	mpd_percent                     Percent of song's progress
# 	new_mails                       Unread mail count in mail spool.         
# 	nodename                        Hostname                                 
# 	outlinecolor      (color)       Change outline color                     
# 	pre_exec          shell command Executes a shell command one time before 
# 					conky displays anything and puts output 
# 					as text.                                 
# 	processes                       Total processes (sleeping and running)   
# 	running_processes               Running processes (not sleeping),        
# 					requires Linux 2.6                       
# 	shadecolor        (color)       Change shading color                     
# 	stippled_hr       (space),      Stippled (dashed) horizontal line        
# 			(height)        
# 	swapbar           (height)      Bar that shows amount of swap in use     
# 	swap                            Amount of swap in use                    
# 	swapmax                         Total amount of swap                     
# 	swapperc                        Percentage of swap in use                
# 	sysname                         System name, Linux for example           
# 	offset            pixels        Move text over by N pixels
# 	tail              logfile, lines (interval)
# 					Displays last N lines of supplied text
# 					text file.  If interval is not supplied,
# 					Conky assumes 2x Conky's interval.
# 					Max of 30 lines.
# 					Max of 30 lines can be displayed.
# 	time              (format)      Local time, see man strftime to get more 
# 					information about format                 
# 	totaldown         net           Total download, overflows at 4 GB on     
# 					Linux with 32-bit arch and there doesn't 
# 					seem to be a way to know how many times  
# 					it has already done that before conky   
# 					has started.                            
# 	top               type, num     This takes arguments in the form:
# 					top <name> <number>
# 					Basically, processes are ranked from 
# 					highest to lowest in terms of cpu
# 					usage, which is what <num> represents.
# 					The types are: "name", "pid", "cpu", and
# 					"mem".
# 					There can be a max of 10 processes listed.
# 	top_mem           type, num     Same as top, except sorted by mem usage
# 					instead of cpu
# 	totalup           net           Total upload, this one too, may overflow 
# 	updates                         Number of updates (for debugging)        
# 	upspeed           net           Upload speed in kilobytes                
# 	upspeedf          net           Upload speed in kilobytes with one       
# 					decimal                                  
# 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# 					Upload speed graph, colours defined in
# 					hex, minus the #.
# 	uptime                          Uptime                                   
# 	uptime_short                    Uptime in a shorter format               

##Les variable sont donnée suivant le format suivant: $variable ou ${variable argument1 argument2 ...}##

##Les elements apres "TEXT" sont affiché a l'ecran##
TEXT

${color E54F00}$alignc${execi 1800 ~/Conky/weather.sh FRXX0102}

Les scripts:
amaroconky.sh

#!/bin/bash
# amaroK info display script by eirc <eirc.eirc@gmail.com>

case "$1" in

# Now Playing Info
artist) dcop amarok player artist ;;
title)  dcop amarok player title ;;
album)  dcop amarok player album ;;
year)   dcop amarok player year ;;
genre)  dcop amarok player genre ;;
progress)
    curr=`dcop amarok player trackCurrentTime`
    tot=`dcop amarok player trackTotalTime`
    if (( $tot )); then
        expr $curr \* 100  / $tot
    fi
    ;;

esac

weather.sh

#!/bin/sh

#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

# Usage:
# ${execi 1800 /path/to/weather/weather.sh location}
# Usage Example:
# ${execi 1800 /home/user/weather/weather.sh 03833}

# your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it 
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=$1

# s=standard units, m=metric units
UNITS=m

# where this script and the XSLT lives
RUNDIR=/home/flo/Conky/ 

# there's probably other stuff besides CURL that will work for this, but i haven't 
# tried any others. 
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl

# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc

# you probably don't need to modify anything below this point....

# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"

# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking 
XSLT=$RUNDIR/weather.xslt 

#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"


#####
eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"

weather.xslt

<!-- 

 This XSLT is used to translate an XML response from the weather.com
 XML API. 

 You can format this file to your liking. Two things you may feel 
 like doing:

	1) Modify the layout of the fields or static text already defined
	2) Add other fields from the XML response file that aren't referenced in this
	   XSLT. You can grab a full list by just doing a: 
           wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS" 
           (change $LOCID and $UNITS to suit your needs)
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > 
	<xsl:output method="text" disable-output-escaping="yes"/>
	<xsl:template match="weather">
		<xsl:apply-templates select="cc"/>
		<xsl:apply-templates select="dayf/day[@d='1']"/>
	</xsl:template>
 
	
	<xsl:template match="cc">
		<xsl:text>Location: </xsl:text><xsl:value-of select="obst"/>  
<xsl:text>:
</xsl:text>
<xsl:text>  Temperature: </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
<xsl:if test="tmp != flik">
<xsl:text>
  Feels Like: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
</xsl:if>
<xsl:text>
  Conditions: </xsl:text><xsl:value-of select="t"/>
<xsl:text>
  Wind: </xsl:text>
<xsl:choose>
	<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
	<xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/weather/head/us"/> 
<xsl:choose>
	<xsl:when test="wind/s = 'calm'"><xsl:text>(0mph)</xsl:text></xsl:when>
	<xsl:otherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text>mph)</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
<xsl:text>)</xsl:text>
	</xsl:template>

	<xsl:template match="dayf/day[@d='1']">
<xsl:text>
  Tomorrow: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>, </xsl:text><xsl:value-of select="part[@p='d']/t"/>
<xsl:text>
  </xsl:text><xsl:value-of select="/weather/swa/a/t"/>
<xsl:text>
</xsl:text>
	</xsl:template>
</xsl:stylesheet>

Et pour lancer le tout:
conky.sh

#!/bin/bash
sleep 10
killall conky
conky -c ~/Conky/.conkyrcgen
sleep 1
conky -c ~/Conky/.conkyrcnet
sleep 1
conky -c ~/Conky/.conkyrcamrk
conky -c ~/Conky/.conkyrcwthr
exit

voili voilou, en esperant que ca serve a quelq'un big_smile

Dernière modification par MrSpoke (Le 11/08/2007, à 14:14)


Vous voulez pouvoir acheter un ordi nu et non tatoué pour pouvoir installer votre Ubuntu chéri :
  Signez !!! ==> http://www.racketiciel.info/

Hors ligne

#278 Le 11/08/2007, à 20:56

Storm

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

farnsworth a écrit :

vi, j'ai essaye ca aussi, mais si on prend le man de conky:

       execi interval command
              Same as exec but with specific interval. Interval can’t be  less
              than update_interval in configuration. See also $texeci

donc je pense que si on met plus ca doit ramener a la valeur de rafraichissement par defaut hmm

Justement, ya pas écrit que ca se ramène à la valeur de rafraichissement par défaut (la update_interval) que si l'on met moins (less) que cette dernière ?

C'est vrai que je n'avais pas pensé à la question de la surcharge des serveurs, mais était pris dans une sombre histoire entre Le Neuf et Dailymotion, cela m'a poussé à y reflechir quelque peu...

Hors ligne

#279 Le 13/08/2007, à 09:21

Bn21

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

De mon coté et comme d'habitude : Simplicité.

Tout d'abord, une petite capture d'écran :
78217a5e8a46b532b42deb0791b52t.jpg

Et le .conky qui va bien avec :

# Faire tourner conky en arrière plan
background yes

# Nombre d'échantillons à utiliser pour calculer la moyenne d'utilisation
cpu_avg_samples 2
net_avg_samples 2

# Nombre de raffraichissement avant de quitter (0 = ne pas quitter)
total_run_times 0

# Afficher le texte de façon standard
out_to_console no

# Polices spéciales ?
use_xft no

# Taux de raffraichissement de la fenêtre (en secondes)
update_interval 1


own_window no
own_window_type override
own_window_transparent yes
own_window_hints undecorated, below


double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1

default_color white
default_shade_color black
default_outline_color black

gap_x 10
gap_y 30
alignment top_right

use_spacer yes
no_buffers yes
uppercase no


TEXT
[$nodename - $sysname Ubuntu Feisty Fawn]
   |
   +-- Processeur
   |    |
   |    +-- Coeur 1 - ${color }${cpubar cpu1 8,60 FFFFFF F6AE03} ${cpu cpu1}% 
   |    +-- Coeur 2 - ${color }${cpubar cpu2 8,60 FFFFFF F6AE03} ${cpu cpu2}% 
   |
   +-- Memoire
   |    |
   |    +-- Memoire - ${membar 8,60 FFFFFF F6AE03} $memperc%
   |    +-- Swap - ${swapbar 8,60 FFFFFF F6AE03} $swapperc%
   |
   +-- Connexion Reseau
   |    |
   |    +-- Debit descendant - ${downspeed ath0} kb/s
   |    +-- Debit montant - ${upspeed ath0} kb/s
   |
   +-- Informations
        |
        +-- Date - ${time %e/%m/%G} ${time %l:%M}
        +-- Uptime - $uptime

Merci à tout les gens du forum, j'ai piqué des bouts à droite à gauche :]

Hors ligne

#280 Le 13/08/2007, à 09:55

Michel38

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour,
Voilà le mien
18063d9c643104e2f31d2b30c7029t.jpg

use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
no_buffers yes
background yes
##own_window_hints undecorated,below,skip_taskbar
##own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color white
default_shade_color black
default_outline_color black
alignment top-right
gap_x 10
gap_y 10
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
##min_port_monitors            0
##min_port_monitor_connections        0

TEXT

${color yellow}Bonjour Michel
${time %A %d %B %Y} - ${time %H:%M:%S}
IP Locale ${addr eth0} - IP Publique ${execi 1800 ~/Perso/monip.sh}
$sysname $kernel sur $machine $freq_g GHz
${color grey}$stippled_hr
${color green}Uptime:$color $uptime ${color white}- Load:$color $loadavg
${color white}CPU Usage:${color white} $cpu% ${cpubar}
${color red}${cpugraph 0000ff 00ff00}
${color white}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color white}Processes:$color $processes ${color white}Running:$color $running_processes
${color grey}$stippled_hr
${color green}Reseau
Down:${color white} ${downspeed eth0} k/s${color green} ${offset 80}Up:${color white} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
${color grey}$stippled_hr
${color #FFFF00}/root    ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar 8 /}
/home   ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar 8 /home}
/hdb1  ${fs_used /media/disque2}/${fs_size /media/disque2}${alignr}${fs_used_perc /media/disque2}%
${fs_bar 8 /media/disque2}
${color grey}$stippled_hr
${color green}Process            PID    %CPU   %MEM
${color red} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color white} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color green}Memoire
${color red} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color white} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color white} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color grey}$stippled_hr
${color white}Temperature systeme
${color yellow}M/B: ${exec expr `cat /sys/bus/i2c/devices/0-004c/temp1_input` / 1000} C  
${color red}CPU: ${exec expr `cat /sys/bus/i2c/devices/0-004c/temp2_input` / 1000} C
${color grey}$stippled_hr
${color green}Port(s) ouvert(s): ${color black}${tcp_portmon 1 65535 count}
${color white} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${color grey}$stippled_hr

et pour connaître son IP publique

#!/bin/bash

# voir ip derriere routeur

wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1 > ip
cat ip

Dernière modification par Michel38 (Le 15/08/2007, à 11:16)


LM18.3 - Kernel: 4.4.0-53-generic i686 (32 bit gcc: 5.4.0) - Cinnamon 3.4.6 (Gtk 3.18.9-1ubuntu3.3)
System: CLEVO (portable)
CPU    : Dual core Intel Core i5-3230M
Card    : Intel 3rd Gen Core processor Graphics Controller

Hors ligne

#281 Le 13/08/2007, à 10:01

farnsworth

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Storm a écrit :
farnsworth a écrit :

vi, j'ai essaye ca aussi, mais si on prend le man de conky:

       execi interval command
              Same as exec but with specific interval. Interval can’t be  less
              than update_interval in configuration. See also $texeci

donc je pense que si on met plus ca doit ramener a la valeur de rafraichissement par defaut hmm

Justement, ya pas écrit que ca se ramène à la valeur de rafraichissement par défaut (la update_interval) que si l'on met moins (less) que cette dernière ?

C'est vrai que je n'avais pas pensé à la question de la surcharge des serveurs, mais était pris dans une sombre histoire entre Le Neuf et Dailymotion, cela m'a poussé à y reflechir quelque peu...

yep, tu as raison, j'ai edite le post, je devais pas etre reveille, au final je me suis emmerde (pas trop quand meme wink ) a faire un script pour rien tongue

Hors ligne

#282 Le 14/08/2007, à 18:02

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Voici mon dernier à peine changé (juste les couleurs lol)

capturezu9.th.png

Mais j'ai un problème avec kde que je n'ai pas sous gnome. Quand conky est rafraichi (par exemple pour l'ajout de la barre pour amarok au lancement d'amarok) le fond devient noir et je suis obligé d'enlever le fond d'écran et de le remettre pour récupérer le fond "transparent" ... C'est super chiant et pas du tout fonctionnel hmm

capture5kp2.th.png

Quelqu'un a une idée de l'origine de ce problème?

Je remets quand même le code correspondant à conky

# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Fatboy Slim BLTC (BRK):size=10
xftfont monospace:size=8

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour black

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color 000000
default_shade_color 000000
default_outline_color 000000

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right
#alignment none

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

# Subtract file system buffers from used memory?
no_buffers no

# 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

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

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

# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
#max_port_monitor_connections 256

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# Possible variables to be used:
#
#      Variable         Arguments                  Description                

#  addr              (interface)     IP address for an interface
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  alignr            (num)           Right-justify text, with space of N
#  alignc                            Align text to centre
#  battery           (num)           Remaining capasity in ACPI or APM        
#                                    battery. ACPI battery number can be      
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered                
#  cached                            Amount of memory cached                  
#  color             (color)         Change drawing color to color            
#  cpu                               CPU usage in percents                    
#  cpubar            (height)        Bar that shows CPU usage, height is      
#                                    bar's height in pixels                   
#  cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                                    CPU usage graph
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                                    Download speed graph
#  exec              shell command   Executes a shell command and displays    
#                                    the output in conky. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  execbar           shell command   Same as exec, except if the first value
#                                    return is a value between 0-100, it
#                                    will use that number for a bar.
#                                    The size for the bar is currently fixed,
#                                    but that may change in the future.
#  execgraph         shell command   Same as execbar, but graphs values
#  execi             interval, shell Same as exec but with specific interval. 
#                    command         Interval can't be less than              
#                                    update_interval in configuration.        
#  fs_bar            (height), (fs)  Bar that shows how much space is used on 
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file      
#                                    system.                                  
#  fs_free           (fs)            Free space on a file system available    
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.              
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in 
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C  
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or
#                                    temp/tempf (first in C, second in F)
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  if_running        (process)       if PROCESS is running, display
#                                    everything if_running and the matching $endif
#  if_existing       (file)          if FILE exists, display everything between
#                                    if_existing and the matching $endif
#  if_mounted        (mountpoint)    if MOUNTPOINT is mounted, display everything between
#                                    if_mounted and the matching $endif
#  else                              Text to show if any of the above are not true
#  kernel                            Kernel version                          
#  linkstatus        (interface)     Get the link status for wireless connections
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example                
#  mails                             Mail count in mail spool. You can use    
#                                    program like fetchmail to get mails from 
#                                    some server using your favourite         
#                                    protocol. See also new_mails.            
#  mem                               Amount of memory in use                  
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use
#  
#  metar_ob_time
#  metar_temp
#  metar_tempf                      Temp in F
#  metar_windchill
#  metar_dew_point                   There are a bunch of these
#  metar_rh                          and they are self-explanatory
#  metar_windspeed
#  metar_winddir
#  metar_swinddir
#  metar_cloud
#  metar_u2d_time

#  ml_upload_counter                 total session upload in mb
#  ml_download_counter               total session download in mb
#  ml_nshared_files                  number of shared files
#  ml_shared_counter                 total session shared in mb, buggy
#                                    in some mldonkey versions
#  ml_tcp_upload_rate                tcp upload rate in kb/s
#  ml_tcp_download_rate              tcp download rate in kb/s
#  ml_udp_upload_rate                udp upload rate in kb/s
#  ml_udp_download_rate              udp download rate in kb/s
#  ml_ndownloaded_files              number of completed files
#  ml_ndownloading_files             number of downloading files
#  
#  mpd_artist			    Artist in current MPD song
#                                    (must be enabled at compile)
#  mpd_album			    Album in current MPD song
#  mpd_bar           (height)        Bar of mpd's progress
#  mpd_bitrate                       Bitrate of current song
#  mpd_status                        Playing, stopped, et cetera.
#  mpd_title			    Title of current MPD song
#  mpd_vol			    MPD's volume
#  mpd_elapsed                       Song's elapsed time
#  mpd_length                        Song's length
#  mpd_percent                       Percent of song's progress
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before 
#                                    conky displays anything and puts output 
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),        
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line        
#                    (height)        
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                    
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use                
#  sysname                           System name, Linux for example           
#  offset            pixels          Move text over by N pixels
#  tail              logfile, lines (interval)
#                                    Displays last N lines of supplied text
#                                    text file.  If interval is not supplied,
#                                    Conky assumes 2x Conky's interval.
#                                    Max of 30 lines.
#                                    Max of 30 lines can be displayed.
#  time              (format)        Local time, see man strftime to get more 
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't 
#                                    seem to be a way to know how many times  
#                                    it has already done that before conky   
#                                    has started.                            
#  top               type, num      This takes arguments in the form:
#                                    top <name> <number>
#                                    Basically, processes are ranked from 
#                                    highest to lowest in terms of cpu
#                                    usage, which is what <num> represents.
#                                    The types are: "name", "pid", "cpu", and
#                                    "mem".
#                                    There can be a max of 10 processes listed.
#  top_mem           type, num       Same as top, except sorted by mem usage
#                                    instead of cpu
#  totalup           net             Total upload, this one too, may overflow 
#  updates                           Number of updates (for debugging)        
#  upspeed           net             Upload speed in kilobytes                
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                  
#  upspeedgraph      net (height),(width) (gradient colour 1) (gradient colour 2)
#                                    Upload speed graph
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument


# stuff after 'TEXT' will be formatted on screen

TEXT

${color #000000}Kubuntu 7.04 $sysname $kernel
   |
   +-- System
   |    |
   |    +-- Intel Core2Duo E6600 ${color #563207}@ $freq_dyn_g GHz : ${cpu cpu}% ${color #000000}
   |    |    |
   |    |    +-- Core1   ${color #563207}${cpu cpu1}%, ${color #000000}${cpugraph cpu1 10,100 D27B11  563207}${color #000000}
   |    |    +-- Core2   ${color #563207}${cpu cpu2}%, ${color #000000}${cpugraph cpu2 10,100 D27B11  563207}${color #000000}
   |    +-- Ram   $mem / $memmax   ${color #563207}$memperc% ${color #000000}
   |    +-- Swap   $swap / $swapmax   ${color #563207}$swapperc%${color #000000}
   |    +-- Uptime   ${color #563207}$uptime${color #000000}
   |    +-- Processes
   |         |   ${color #000000}                   PID       % CPU    % MEM
   |         +--${color #000000} ${top name 1}   ${top pid 1}   ${top cpu 1}   ${top mem 1}${color #000000}
   |         +--${color #2A2213} ${top name 2}   ${top pid 2}   ${top cpu 2}   ${top mem 2}${color #000000}
   |         +--${color #4F4124} ${top name 3}   ${top pid 3}   ${top cpu 3}   ${top mem 3}${color #000000}
   |         +--${color #8B7240} ${top name 4}   ${top pid 4}   ${top cpu 4}   ${top mem 4}${color #000000}
   |         +--${color #BC9A56} ${top name 5}   ${top pid 5}   ${top cpu 5}   ${top mem 5}${color #000000}
   +-- Network
   |    |
   |    +-- Local IP ${color #563207}${addr eth0}${color #000000}   Public IP ${color #563207}${execi 1500 /home/cam/scripts/monip.sh}${color #000000}
   |    +-- Download   ${downspeed eth0} k/s ${downspeedgraph eth0 10,100 D27B11  563207}
   |    +-- Upload   ${upspeed eth0} k/s ${upspeedgraph eth0 10,100 D27B11  563207}
   +-- Disks
   |    |
   |    +-- /   ${fs_used /} / ${fs_size /}${color #563207} ${fs_free_perc /}% free${color #000000}
   |    +-- /home   ${fs_used /home} / ${fs_size /home}${color #563207} ${fs_free_perc /home}%  free${color #000000}
   |    +-- /media/janbeuhnoix   ${fs_used /media/janbeuhnoix} / ${fs_size /media/janbeuhnoix}${color #563207} ${fs_free_perc /media/janbeuhnoix}% free${color #000000}
   +-- Music ${if_running amarokapp} 
        |
        +-- ${execi 10 ~/.conky/amarok artist} - ${execi 10 ~/.conky/amarok title}
        +-- ${color #563207}${execibar 1 ~/.conky/amarok progress}
$endif

Dernière modification par cam (Le 14/08/2007, à 18:51)

Hors ligne

#283 Le 14/08/2007, à 18:55

danydan

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

salut!
je viens de decouvrir Conky et c'est bien chouette!
le probleme c'est qu'il ne se lance que 1s au demarrage et se ferme aussitot..
en revanche , il est bien dans les processus actif.:rolleyes:

voici le code:

# Position sur l'écran
alignment top_right
use_xft yes
on_top yes
xftfont Khalid:size=9
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color #4582B5
default_shade_color black
default_outline_color black
alignment bottom_right
gap_x 20
gap_y 300
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override




TEXT
$kernel on $machine
$stippled_hr
${color #4582B5}			Bonjour Dany

${color #4582B5}Uptime:$color $uptime ${color #FFFFFF}- Load:$color $loadavg
${color #4582B5}Usage CPU:$color $cpu% ${color #FFFFFF} ${cpubar}
cpu1 - ${cpu cpu1}%, ${color }${cpugraph cpu1 8,60 000000  000000}
cpu2 - ${cpu cpu2}%, ${color }${cpugraph cpu2 8,60 000000  000000}
${color #4582B5}Usage RAM:${color #FFFFFF} $mem/$memmax - $memperc% ${membar}
${color #4582B5}Processus:$color $processes ${color #FFFFFF}Running:$color $running_processes
$color$stippled_hr
${color #4582B5}Espace Disque:
ext3: $color${fs_free /}/${fs_size /} ${fs_bar /}
$color$stippled_hr
${color green}Memoire
${color white} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color white} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color white} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color grey}$stippled_hr
${color #97C12C}    Temperatures$color       
${color #97C12C}cpu :$color ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp2_input` / 1000}$color ${color #97C12C} °C${alignr}$color 
${color #97C12C}carte-mere : ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp1_input` / 1000}$color ${color #97C12C} °C${alignr}$color
${color #97C12C}        Vitesse des ventilos$color
${color #97C12C}ventilo 1 : ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/fan1_input` / 1}$color ${color #97C12C} Tr/Min${alignr}$color
${color #97C12C}ventilo 2 :${color ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/fan2_input` / 1}$color ${color #97C12C} Tr/Min${alignr}$color

${color #FFFFFF}              	 choses a faire aujourd'hui:- ${time %a,} ${time %e %m %G}


Glander devant la télé!

si qqu'un a une idee..

Dernière modification par danydan (Le 14/08/2007, à 18:56)


Linux is Unic

Hors ligne

#284 Le 14/08/2007, à 19:01

eneru

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

cam a écrit :

Voici mon dernier à peine changé (juste les couleurs lol)

http://img507.imageshack.us/img507/7300 … zu9.th.png

sympa ton fond d'écran, tu pourrais le poster stp ? wink


Sinon j'ai une question concernant conky : y a t'il moyen de spécifier autre que du texte ?? (des images seraient les bienvenues)
Je demande parce qu'à moins que j'en ai loupé, tous les screen que j'ai vu ici n'avaient que du texte dans leur conky ou des graphiques standard, et du coup je me demande si on peut spécifier des images (comme fond par example, avec d'autres images par dessus etc.) ou si on est restreint à ce niveau là ? yikes

j'hésite entre conky et adesklet et cette possibilité est un des critères importants hmm

#285 Le 14/08/2007, à 20:07

eneru

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Arf, je viens de lire la page 11 et il semblerait que les images soient pas possibles du tout... tant pis yikes

#286 Le 14/08/2007, à 20:39

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

danydan a écrit :

salut!
je viens de decouvrir Conky et c'est bien chouette!
le probleme c'est qu'il ne se lance que 1s au demarrage et se ferme aussitot..
en revanche , il est bien dans les processus actif.:rolleyes:

voici le code:

# Position sur l'écran
alignment top_right
use_xft yes
on_top yes
xftfont Khalid:size=9
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color #4582B5
default_shade_color black
default_outline_color black
alignment bottom_right
gap_x 20
gap_y 300
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override




TEXT
$kernel on $machine
$stippled_hr
${color #4582B5}			Bonjour Dany

${color #4582B5}Uptime:$color $uptime ${color #FFFFFF}- Load:$color $loadavg
${color #4582B5}Usage CPU:$color $cpu% ${color #FFFFFF} ${cpubar}
cpu1 - ${cpu cpu1}%, ${color }${cpugraph cpu1 8,60 000000  000000}
cpu2 - ${cpu cpu2}%, ${color }${cpugraph cpu2 8,60 000000  000000}
${color #4582B5}Usage RAM:${color #FFFFFF} $mem/$memmax - $memperc% ${membar}
${color #4582B5}Processus:$color $processes ${color #FFFFFF}Running:$color $running_processes
$color$stippled_hr
${color #4582B5}Espace Disque:
ext3: $color${fs_free /}/${fs_size /} ${fs_bar /}
$color$stippled_hr
${color green}Memoire
${color white} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color white} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color white} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color grey}$stippled_hr
${color #97C12C}    Temperatures$color       
${color #97C12C}cpu :$color ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp2_input` / 1000}$color ${color #97C12C} °C${alignr}$color 
${color #97C12C}carte-mere : ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp1_input` / 1000}$color ${color #97C12C} °C${alignr}$color
${color #97C12C}        Vitesse des ventilos$color
${color #97C12C}ventilo 1 : ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/fan1_input` / 1}$color ${color #97C12C} Tr/Min${alignr}$color
${color #97C12C}ventilo 2 :${color ${color #949494}${exec expr `cat /sys/bus/i2c/devices/9191-0290/fan2_input` / 1}$color ${color #97C12C} Tr/Min${alignr}$color

${color #FFFFFF}              	 choses a faire aujourd'hui:- ${time %a,} ${time %e %m %G}


Glander devant la télé!

si qqu'un a une idee..

Je suppose que tu utilises beryl? wink En fait quand beryl se lance il recouvre conky c'est pourquoi tu ne l'a pas longtemps mais il reste dans les processus actifs. Il suffit de ralentir le lancement de conky et pour ça tu créé un script que tu rends éxécutable et que tu lances à la place de la commande de base conky.

Mets ça dedans:

#!/bin/bash
sleep 7 && conky #attente de 7 secondes avant de lancer conky

Dernière modification par cam (Le 28/08/2007, à 21:56)

Hors ligne

#287 Le 14/08/2007, à 20:47

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

eneru a écrit :
cam a écrit :

Voici mon dernier à peine changé (juste les couleurs lol)

http://img507.imageshack.us/img507/7300 … zu9.th.png

sympa ton fond d'écran, tu pourrais le poster stp ? wink

Voilà wink

fabosparrotbywitcherhu4.th.jpg

Hors ligne

#288 Le 14/08/2007, à 21:08

eneru

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

cam a écrit :
eneru a écrit :
cam a écrit :

Voici mon dernier à peine changé (juste les couleurs lol)

http://img507.imageshack.us/img507/7300 … zu9.th.png

sympa ton fond d'écran, tu pourrais le poster stp ? wink

Voilà wink

http://img249.imageshack.us/img249/8094 … hu4.th.jpg

Merci smile

#289 Le 14/08/2007, à 21:13

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

No problemo wink

Hors ligne

#290 Le 14/08/2007, à 22:06

danydan

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

merci ,cam!:)
non, je n'utilise pas Beryl, mais je vais essayer ton sript, ca devrait marcher.:cool:


Linux is Unic

Hors ligne

#291 Le 15/08/2007, à 10:12

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Ok, tiens au courant de l'avancement tongue

Hors ligne

#292 Le 15/08/2007, à 11:58

danydan

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

apparemment ca marche pas plus, sauf en reouverture de session  ctrl alt backspace.
c'est pas bien grave car je peux le lancer une fois la session ouverte.:)


Linux is Unic

Hors ligne

#293 Le 15/08/2007, à 14:35

cam

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

essaie ptete de rallonger le temps. Mets 15 secondes par exemple pour voir smile

Hors ligne

#294 Le 18/08/2007, à 12:53

alex.cyrilux

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Salut, je voulais savoir comment trouver le code de couleur pour le cpugraph ?
Parce que j'arrive à utiliser les codes de couleurs pour l'interface écrite (avev sa : http://www.espace2001.com/espace/couleurs.php) mais je remarque que pour la couleur du graphique, c'est autre chose. En tout cas, quand je rentre une tonalité de vert avec le #, elle n'est pas la même avec le cpugraph hmm.
Alors, si vous connaissez une méthode pour mettre la bonne couleur, je suis toute ouïe smile.
Au passage, il y a de bien beaux bureaux par ici tongue.


Sony VAIO VGN-FS315M + Ubuntu 7.04 = Merveille \o/
Pbm : Lecteur Memory stick o_O

Hors ligne

#295 Le 18/08/2007, à 13:37

Rixou

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Excusez moi de m'incruster mais, comme je suis débutant, je pige rien a vos truk... Depuis ce matin je m obstine à essayer de comprendre un truk, je sais que c'est un écran de fond qui donne des info, mais comment faire pour en avoir/ faire un soit meme ????


Les avis s'est comme les trous du cul, tout le monde en a ...
The Linux Counter - Compteur utilisateur Linux

Ubuntu User number #17873

Hors ligne

#296 Le 18/08/2007, à 15:19

Astier

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Conky comme cela a déjà été précisé et comme cela est dit dans la documentation est un outil de monitoring extrêmement configurable.

Pour l'installer un simple

sudo aptitude install conky

suffit. Ensuite il faut le configurer et là tout se fait à la main :

gedit .conkyrc

. Ensuite pour le lancer, il suffit de lancer la commande

conky

soit par le biais d'une console ou par le lanceur d'applications (Alt+F2).

Hors ligne

#297 Le 18/08/2007, à 15:25

Astier

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Un autre post pour une question, très geek et donc vitale lol : il m'arrive d'utiliser plusieurs lecteurs audio (pas tous à la fois quand même) et donc j'aimerais pouvoir faire en sorte que conky m'affiche les infos relatives à la lecture quel que soit le lecteur utilisé.

Pour l'instant j'ai fait un truc dans le genre :

${color #800080}${gmb_title}${mpd_title}
${color #4682B4}${gmb_artist}${mpd_artist}
${color #008B8B}${gmb_album}${mpd_album}

Si ça marche parfaitement pour les informations comme le titre, l'album, l'artiste ça pose déjà plus de problèmes lorsqu'il s'agit des informations de temps et la barre d'avancement, dans la mesure où dans ce cas-là conky affiche les temps des deux lecteurs (l'un n'étant pas lancé, j'obtiens 00:0001:23/00:0003:29 par exemple ce qui n'est pas top).

Une idée ? Je pensais passer éventuellement par un script qui dans un premier temps déterminerait quel lecteur est actif puis en fonction de cela renverrait à conky les informations pertinentes. Or mes connaissances en progammation sont nulles et j'aimerais bénéficier de vos lumières dans ce domaine.

Merci et à bientôt.

Hors ligne

#298 Le 18/08/2007, à 20:47

Kyne

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Voila le mien smile

79396b130b553f29ba40f28cc6be0t.jpg

use_xft yes
xftfont Sans:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window_hints undecorated,below,sticky

own_window_transparent yes
#own_window_colour black
own_window yes
own_window_type override
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no gedit $HOME/.conkyrc

stippled_borders 8
border_margin 4
border_width 1
alignment top_right
gap_x 36
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no
maximum_width 300



TEXT

${color #FFFFFF}+-- Nous sommes le ${time %d/%m/%Y } il est ${time %H:%M:%S}
 |---- $sysname $kernel sur $machine $freq_g GHz
${color #FFFFFF} |---- IP Locale : ${color #5A2100}${addr eth0} - ${color #FFFFFF}IP Publique : ${color #5A2100}${execi 1800 wget -O - http://ip.tupeux.com | tail}

${color #FFFFFF}+-- Batterie :
${color #FFFFFF} |---- Adaptateur : ${color #5A2100}${acpiacadapter}
${color #FFFFFF} |---- Autonomie batterie : ${color #5A2100}${battery BAT0}

${color #FFFFFF}+-- Usage CPU :${color #5A2100} $cpu% ${color #5A2100} ${cpubar}
${color #5A2100} ${cpugraph 000000 000000}
${color #FFFFFF} |---- Usage RAM :${color #5A2100} $mem/$memmax - $memperc% ${membar}
${color #FFFFFF} |---- Processus :${color #5A2100} $processes ${color #5A2100}Running:${color #5A2100} $running_processes

${color #FFFFFF}+-- Espace Disque :
 |---- Principal : ${color #5A2100}${fs_free /} / ${fs_size /} ${fs_bar /}

Hors ligne

#299 Le 19/08/2007, à 21:31

Coincoin0017

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

Astier a écrit :

Pour l'instant j'ai fait un truc dans le genre :

${color #800080}${gmb_title}${mpd_title}
${color #4682B4}${gmb_artist}${mpd_artist}
${color #008B8B}${gmb_album}${mpd_album}

Si ça marche parfaitement pour les informations comme le titre, l'album, l'artiste ça pose déjà plus de problèmes lorsqu'il s'agit des informations de temps et la barre d'avancement, dans la mesure où dans ce cas-là conky affiche les temps des deux lecteurs (l'un n'étant pas lancé, j'obtiens 00:0001:23/00:0003:29 par exemple ce qui n'est pas top).

Une idée ? Je pensais passer éventuellement par un script qui dans un premier temps déterminerait quel lecteur est actif puis en fonction de cela renverrait à conky les informations pertinentes. Or mes connaissances en progammation sont nulles et j'aimerais bénéficier de vos lumières dans ce domaine.

Merci et à bientôt.

Salut,
tu pourrais faire plus simple en utilisant if_running et endif :

${if_running gmb}${color #800080}${gmb_title}
${color #4682B4}${gmb_artist}
${color #008B8B}${gmb_album}$endif
${if_running mpd}${color #800080}${mpd_title}
${color #4682B4}${mpd_artist}
${color #008B8B}${mpd_album}$endif

Par contre il faut tester, ça fonctionne avec xmms, mais après pour tes lecteurs...

++
Coincoin

Dernière modification par Coincoin0017 (Le 19/08/2007, à 21:39)

Hors ligne

#300 Le 20/08/2007, à 08:18

olive33

Re : Conky : Postez vos conkyrc ou certaines parties intéressantes

salut, petite mise a jour de mes conky, et quelques scripts, un peu originaux j'espère wink
le principe est d'afficher les info données par Quod Libet dont la pochette de l'album en fond d'écran.
prérequis: Quod Libet, sensors (voir la doc) et le paquet imagemagick pour redimensionner la pochette affichée. Il faut aussi activer un greffon dans quod libet: picture saver, c'est lui qui copie la pochette sous ~/.quodlibet/current.cover

le bureau: conkyrc
bureausl7.th.png

sur la télé: conkyrc2 et conkyrc3
tvfx8.th.png

conkyrc:

# conky configuration
# edited by Olive: mail_olive@yahoo.fr

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8

# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 3.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override yes
own_window_skip_taskbar yes
own_window_skip_pager yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 5
maximum_width 180

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
stippled_borders 2

# border margins
border_margin 6

#bordure des bargraph
draw_graph_borders yes

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white


# Stippled borders?
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

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

# 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

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


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(


TEXT
${font Terminus:size=10}${alignc}${color E7E1D6}${exec cat /etc/lsb-release | grep DISTRIB_DESCRIPTION | cut -d "=" -f2 }-${exec cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d "=" -f2 }
${font Terminus:size=8}${alignc}${color 708090}  $sysname $kernel
${color 708090}${hr 1}
${offset 5}${color 708090}CPU :${color 708090} ${freq_dyn_g}Ghz - ${color E7E1D6}${cpu}%
${alignc}${cpugraph 20,180 708090 E7E1D6}
${color 708090}Temp:    cpu: ${color #E7E1D6}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp2_input` / 1000}${color 708090}°C ${alignr} c-m: ${color #E7E1D6}${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp1_input` / 1000}${color 708090}°C
${color 708090}Processus:${color E7E1D6} $processes ${color 708090}Running:${color E7E1D6} $running_processes 
${color 708090}Depuis ${color E7E1D6}$uptime
${color 708090}${hr 1}
${offset 5}${color 708090}Utilisation CPU :
${offset 10}${color #E7E1D6} ${top name 1} ${alignr 30}${top cpu 1}%
${offset 10}${color 708090} ${top name 2} ${alignr 30}${top cpu 2}%
${offset 10} ${top name 3} ${alignr 30}${top cpu 3}%
${offset 10} ${top name 4} ${alignr 30}${top cpu 4}%
${offset 10} ${top name 5} ${alignr 30}${top cpu 5}%
${offset 10} ${top name 6} ${alignr 30}${top cpu 6}%

${offset 5}${color 708090}Utilisation MEM :
${offset 10}${color #E7E1D6} ${top_mem name 1} ${alignr 30}${top_mem mem 1}%
${offset 10}${color 708090} ${top_mem name 2} ${alignr 30}${top_mem mem 2}%
${offset 10} ${top_mem name 3} ${alignr 30}${top_mem mem 3}%
${offset 10} ${top_mem name 4} ${alignr 30}${top_mem mem 4}%
${offset 10} ${top_mem name 5} ${alignr 30}${top_mem mem 5}%
${offset 10} ${top_mem name 6} ${alignr 30}${top_mem mem 6}%
${hr 1}
${offset 5}${color 708090}Mem  : ${color #E7E1D6}${mem}${color 708090} de ${memmax /} ${alignr}${color #E7E1D6}$memperc%
${color #E7E1D6}${membar}
${offset 5}${color 708090}Swap : ${color #E7E1D6}${swap}${color 708090} de ${swapmax /} ${alignr}${color #E7E1D6}$swapperc%
${color #E7E1D6}${swapbar}
${color 708090}${hr 1}
${offset 5}${color 708090}System:
${color 708090}${fs_used /}${color 708090}/${fs_size /}${alignr}${color #E7E1D6}${fs_used_perc /}%  
${color #E7E1D6}${fs_bar /} 
${offset 5}${color 708090}Home:
${color 708090}${fs_used /home}${color 708090}/${fs_size /home}${alignr}${color #E7E1D6}${fs_used_perc /home}%  
${color #E7E1D6}${fs_bar /home} 
${offset 5}${color 708090}Backup:
${color slategrey}${fs_used /media/hdc}${color 708090}/${fs_size /media/hdc}${alignr}${color #E7E1D6}${fs_used_perc /media/hdc}%
${color #E7E1D6}${fs_bar /media/hdc} 
${color 708090}${hr 1}
${offset 5}${color 708090}Connexions :
Down:${color #E7E1D6} ${downspeed eth0} k/s${color 708090}${alignr}Up:${color #E7E1D6}${upspeed eth0} k/s
${color #E7E1D6}${downspeedgraph eth0 32,85 E7E1D6 708090}   ${color #E7E1D6}${upspeedgraph eth0 32,85 708090 E7E1D6}
${color 708090}${hr 1}
${color 708090}  Artiste:   ${color E7E1D6}${exec cat ~/.quodlibet/current | grep artist | cut -d "=" -f2 }
${color 708090}  Titre:      ${color E7E1D6}${exec cat ~/.quodlibet/current | grep title | cut -d "=" -f2 }${alignr}${color 708090}(${color E7E1D6}${exec cat ~/.quodlibet/current | grep tracknumber | cut -d "=" -f2 }${color 708090})
${color 708090}  Album:   ${color E7E1D6}${exec cat ~/.quodlibet/current | grep album | cut -d "=" -f2 }
${color 708090}  genre:   ${color E7E1D6}${exec cat ~/.quodlibet/current | grep genre | cut -d "=" -f2 }
${color 708090}  Format: ${color E7E1D6}${exec cat ~/.quodlibet/current | grep format | cut -d "=" -f2 }${alignr}${color 708090}Bitrate: ${color E7E1D6}${exec expr `cat ~/.quodlibet/current | grep bitrate | cut -d "=" -f2` / 1000 }${color 708090} kb/s
${execi 10 ~/.quodlibet/resize.sh}
${execi 10 ~/.quodlibet/wallpaper.sh}

les deux dernières lignes lancent les scripts pour redimentionner puis afficher la pochette en fond d'écran.

conkyrc2:

 
# configuration de conky pour le deuxieme écran partie basse
# by Olive: mail_olive@yahoo.fr

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont URW Chancery L:size=22
# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# Update interval in seconds
update_interval 3.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override yes
own_window_skip_taskbar yes
own_window_skip_pager yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 600 5
maximum_width 600 50

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
stippled_borders 2

# border margins
border_margin 6

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white


# Stippled borders?
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_rigth

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

# 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

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


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(


TEXT
${alignc}${color slate grey}(${color 22ccff}${exec cat ~/.quodlibet/current | grep tracknumber | cut -d "=" -f2 }${color slate grey}) de ${color 22ccff}${exec cat ~/.quodlibet/current | grep album | cut -d "=" -f2 }
${color slate grey}  genre:   ${color 22ccff}${exec cat ~/.quodlibet/current | grep genre | cut -d "=" -f2 }${color slate grey}${alignr}Format: ${color 22ccff}${exec cat ~/.quodlibet/current | grep format | cut -d "=" -f2 }

conkyrc3:

# configuration de conky pour le deuxieme écran partie haute
# by Olive: mail_olive@yahoo.fr

# set to yes if you want Conky to be forked in the background
background no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont URW Chancery L:size=22
# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# Update interval in seconds
update_interval 3.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override yes
own_window_skip_taskbar yes
own_window_skip_pager yes

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 400 5
maximum_width 400 50

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
stippled_borders 2

# border margins
border_margin 6

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white


# Stippled borders?
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_rigth

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

# 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

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


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(


TEXT
${alignc}${color 22ccff}${exec cat ~/.quodlibet/current | grep artist | cut -d "=" -f2 }
${alignc}${color 22ccff}${exec cat ~/.quodlibet/current | grep title | cut -d "=" -f2 }

les cripts, sont a copier dans ~/.quodlibet:
resize.sh:

#! /bin/bash
convert ~/.quodlibet/current.cover -resize 300x300 ~/.quodlibet/current.png
rm ~/.quodlibet/current.cover
&

wallpaper.sh:

#!/bin/sh
#-----------------------------------------------------------------------#
#                                                                       #
# Description : wallpaper script                                        #
# OS          : Linux                                                   #
# Licence     : GPL                                                     #
# Version     : 0.1.0                                                   #
# Author      : Olive : mail_olive@yahoo.fr                             #
#-----------------------------------------------------------------------#

# On définit le fichier pochette de l'album
chemin=~/.quodlibet/current.png

# On modifie la valeur de la clé du fond d'écran dans Gconf
gconftool -t str -s /desktop/gnome/background/picture_filename "$chemin"
# on force le centrage de la pochette
gconftool -t str -s /desktop/gnome/background/picture_options "centered"
# On force l'aspect du fond
gconftool -t str -s /desktop/gnome/background/color_shading_type "vertical-gradient"
gconftool -t str -s /desktop/gnome/background/primary_color "#CB863E"
gconftool -t str -s /desktop/gnome/background/secondary_color "#E8AA6A"

et bien sur le script de démarage, mais ça tout le monde connais wink:
conkystart.sh:

#!/bin/sh
sleep 7
killall conky
env DISPLAY=:0.0 conky -c .conkyrc&
env DISPLAY=:0.1 conky -c .conkyrc2&
env DISPLAY=:0.1 conky -c .conkyrc3&

voilou, normalement il ne manque rien, tous les chemins sont generiques et devraient fonctionner partout.
amicalement,
     Olivier.

Dernière modification par olive33 (Le 20/08/2007, à 08:21)


Ubuntu 14.04 LTS... -Intel i5 -nvidia gt520 ...joli boitier de salon bien silencieux :D
Lubuntu pour la musique dans un boitier encore plus joli et encore plus silencieux !!

Hors ligne