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.

#1 Le 20/04/2005, à 20:42

biginoz

[Info] Plus leger que gdesklet : Torsmo

voila un petit logiciel simple de configuration ( un fichier a editer , des lignes sont deja commenté pour tout expliquer , malheureusement c'est en anglais, les anglophobes s'abstenir)
bref un petit : sudo apt-get  torsmo
et puis copier un petit fichier .torsmorc qui a l'allure suivante :

# torsmo configuration

# set to yes if you want tormo 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 courier-12

# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

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

# 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 yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_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 white
default_shade_color black
default_outline_color black

# 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
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  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                   
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  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 
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  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              
#  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 
#                                    torsmo 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           
#  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 torsmo   
#                                    has started.                             
#  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                                  
#  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
$nodename - $sysname $kernel on $machine
$stippled_hr
${color grey}Uptime$color $uptime
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 6}
${color grey}CPU Usage:$color $cpu% ${cpubar 6}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color grey}Mails: ${color}$mails${color grey} New: ${color}$new_mails${color grey}
$color$stippled_hr
${color grey}Networking:
 Up:$color ${upspeedf eth0} k/s${color grey} - Down:$color ${downspeedf eth0} k/s
${color grey}File systems:
 / $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
 /C $color${fs_free /windows}/${fs_size /windows} ${fs_bar 6 /windows}
 /D $color${fs_free /windows1}/${fs_size /windows1} ${fs_bar 6 /windows1}
 /E $color${fs_free /windows2}/${fs_size /windows2} ${fs_bar 6 /windows2}
${color grey}Temperatures:
 CPU:$color ${i2c temp 0}°C${color grey}

++;)
ps , j'oubliais a lancer au démarage systeme > preference >session> programme au demarrage , puis ajouter torsmo

Hors ligne

#2 Le 21/04/2005, à 03:34

coffee

Re : [Info] Plus leger que gdesklet : Torsmo

Et ça fait tout comme gdesklets? Il y a des applets?


Nom d'un tupperware habillé en streetware mangeant de la confiture de pouère et qui se dite où est-ce que je suis ouère !
Tiens mon blog
Les blagues sous forme de fausses aides sont susceptible de ban (ex: rm)

Hors ligne

#3 Le 21/04/2005, à 09:43

biginoz

Re : [Info] Plus leger que gdesklet : Torsmo

un petit screenshot :
http://torsmo.sourceforge.net/ (Edité par Ju. - La ça ira bien)
il est possible de rajouter la météo maisj'ai pas testé et la température doit feonctionner mais je viende désinstallé sensors donc normal que j'ai les valeur à 0 pour la température
cela te va comme reponse?

Hors ligne

#4 Le 21/04/2005, à 11:21

Bkssou

Re : [Info] Plus leger que gdesklet : Torsmo

SI tu veux des images tu peux aller sur google (section image)...
tu verra c'est assez spartiate je trouve mais si il est possible de tout configurer (taille, fonts, ...) ca peut rendre pas mal.

Hors ligne

#5 Le 21/04/2005, à 12:05

nucle

Re : [Info] Plus leger que gdesklet : Torsmo

J'ai testé et boaf j'ai pas été comblé!

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

est tres ennuyeux et si je met "no" le prog clignote

Par contre si vous avez autrechose mieux et plus leger que gdesklets, je suis preneur!
Je regarde de mon coté


Ce qui vaut la peine d'être fait, vaut la peine d'être bien fait. (Loïs McMaster Bujold)

Hors ligne

#6 Le 21/04/2005, à 14:17

biginoz

Re : [Info] Plus leger que gdesklet : Torsmo

menfin je pense que pour une petite config. C plutot sympa!
Bref avis aux amateur quand même!
wink

Hors ligne

#7 Le 21/04/2005, à 17:46

jolafr

Re : [Info] Plus leger que gdesklet : Torsmo

C'est super sympa mais j 'ai un problème pour afficher seti
Voilà mon .torsmorc

# torsmo configuration

# set to yes if you want tormo 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 courier-12

# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

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

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

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_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 red
default_shade_color black
default_outline_color black

# 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
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
seti_dir ~/.setiathome

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  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                   
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  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 
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  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              
#  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 
#                                    torsmo 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           
#  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 torsmo   
#                                    has started.                             
#  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                                  
#  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 blue}$nodename-$sysname  $color$kernel on $machine   , $time
$stippled_hr
${color blue}Uptime    :$color $uptime
${color blue}RAM Usage :$color $mem/$memmax - $memperc% ${membar 6}
${color blue}Swap Usage:$color $swap/$swapmax  - $swapperc% ${swapbar 6}
${color blue}CPU Usage :$color $cpu% ${cpubar 6}
${color blue}Processes :$color $processes  ${color blue}Running:$color $running_processes
${color blue}Mails: ${color}$mails${color blue} New: ${color}$new_mails${color grey}
$color$stippled_hr
${color blue}Networking:
    Up  :$color ${upspeedf eth0} k/s${color blue} -   Down   :$color ${downspeedf eth0} k/s
${color blue}Total up:$color ${totalup eth0}    ${color blue}-Total Down:$color ${totaldown eth0} 
$color$stippled_hr
${color blue}File systems:
 Root: $color${fs_free /}/${fs_size /}     ${fs_bar 6 /}${color blue}
 Home: $color${fs_free /home}/${fs_size /home}     ${fs_bar 6 /home}${color blue}
 Data: $color${fs_free /mnt/data}/${fs_size /mnt/data} ${fs_bar 6 /mnt/data}
 
${color blue}Seti@Home:$seti_prog  ${seti_progbar 6} $seti_credit

Et dans le terminal il me met ca

17:44 pj@ubuntu ~% torsmo
torsmo: /home/pj/.torsmorc: 16: no such configuration: 'use_xft'
torsmo: /home/pj/.torsmorc: 19: no such configuration: 'xftfont'
torsmo: /home/pj/.torsmorc: 22: no such configuration: 'xftalpha'
torsmo: /home/pj/.torsmorc: 34: no such configuration: 'double_buffer'
torsmo: /home/pj/.torsmorc: 79: no such configuration: 'seti_dir'
torsmo: unknown variable seti_prog
torsmo: unknown variable seti_progbar
torsmo: unknown variable seti_credit

Hors ligne

#8 Le 16/05/2005, à 12:31

izguit

Re : [Info] Plus leger que gdesklet : Torsmo

pour dépoussiérer un peu le topic smile :
- pour le clignotement, le double-buffering est fait pour ça smile, alors, à la ligne double-buffer, mettez yes
- @jolafr : tout à la fin de ton .torsmorc, enlève la ligne "${color blue}Seti@Home:$seti_prog  ${seti_progbar 6} $seti_credit"

j'utilise torsmo depuis +/- d'une semaine, il est léger, complet, marche bien, et est très configurable, alors essayez-le wink

Hors ligne

#9 Le 25/06/2005, à 10:35

cgiles

Re : [Info] Plus leger que gdesklet : Torsmo

T'aurais un lien où je pourrais trouver une doc, parce que je voudrais afficher des trucs comme le nom de mon wallapaper, des ptits trucs de ce genre quoi.

Donc si t'as un lien merci.

Franchement en complément de fluxbox il déchire.
a++

Hors ligne

#10 Le 16/08/2005, à 17:27

eks

Re : [Info] Plus leger que gdesklet : Torsmo

izguit a écrit :

- pour le clignotement, le double-buffering est fait pour ça smile, alors, à la ligne double-buffer, mettez yes

Ca ne résout pas le problème chez tout le monde.
L'auteur lui-même signale que le problème vient du fait que nautilus gère le desktop, donc le redessine (d'où la clignotement). Il faut donc choisir entre torsmo et la gestion du desktop par nautilus. Si vous choisissez torsmo, ouvrez gconf, et allez dans /apps/nautilus/preferences/ décocher la case show_desktop.

Pour la doc hélas très légère : http://torsmo.sourceforge.net/readme.php

Sinon il y a son successeur (vu que torsmo n'est plus maintenu) : Conky, que j'espère retrouver en universe/multiverse dans breezy.

Mon .tormorc :

# torsmo configuration

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

# X font when Xft is disabled, you can pick one with program xfontsel
font -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1

update_interval 5.0
own_window no
minimum_size 80 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
border_margin 2
border_width 1
default_color white
default_shade_color black
default_outline_color black
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
gap_x 5
gap_y 20
no_buffers yes
uppercase no

TEXT
${color slate grey}$nodename : $machine
${color slate grey}$sysname${color } $kernel
${color slate grey}UpTime: ${color }$uptime
${color slate grey}${time %a, }${color }${time %e %B %G}
${color slate grey}${time %Z, }${color }${time %H:%M:%S}
${stippled_hr 2 1}
${color slate grey}Load :${color } ${loadavg 1 2}
${color slate grey}CPU :${color } $cpu% - $acpitemp°C
${color slate grey}${cpubar 3}${color }
${color slate grey}RAM :${color } $memperc% $mem/$memmax
${color slate grey}${membar 3}${color }
${color slate grey}SWAP :${color } $swapperc% $swap/$swapmax
${color slate grey}${swapbar 3}${color }
${stippled_hr 2 1}
${color slate grey}Battery :$color ${battery BAT0}
${stippled_hr 2 1}
${color slate grey}File systems:$color
/ ${fs_free /}/${fs_size /}
 ${color slate grey}${fs_bar 6 /}$color
/mnt/win ${fs_free /mnt/win}/${fs_size /mnt/win} 
 ${color slate grey}${fs_bar 6 /mnt/win}$color
${stippled_hr 2 1}
${color slate grey}wlan0 :${color} Qual ${exec /sbin/iwconfig wlan0 | sed 's/ /\n/g' | grep Quality | sed 's/Quality://g'}Up :${color } ${upspeedf wlan0} ko/s
${color}Down :${color } ${downspeedf wlan0} ko/s
${color slate grey}eth0 :
${color}Up :${color } ${upspeedf eth0} ko/s
${color}Down :${color } ${downspeedf eth0} ko/s ${color}
${stippled_hr 2 1}
${color slate grey}Users :${color } ${execi 8 who -q | head -n 1 | tr -s ' ' '\n' | uniq | wc -l}${color slate grey}Processes :$color $processes
${color slate grey}Running :$color $running_processes
${color slate grey}Cpu  Mem  Procs ${color }
${execi 10 ps gaxo %cpu,%mem,comm | sort +0nr | head -n 5 | sed -e 's/-bin//' | sed -e 's/-media-play//'}${stippled_hr 2 1}
${execi 40000 cal}

Dernière modification par eks (Le 16/08/2005, à 22:05)


eks

Hors ligne

#11 Le 16/08/2005, à 23:56

Tchaka

Re : [Info] Plus leger que gdesklet : Torsmo

Slt eks,

je suis assez interessé par torsmo, mais j'ai vu dans synaptic que cetait pas la dernière version (il propose la 0.17 alors que sur le site officiel de torsmo c'est la 0.18), je peux me contenter de la 0.17?

Sinon, tu m'entionnes son successeur Conky, l'as tu essayer? faut il encore attendre avant de l'installer car je ne l'ai pas trouvé dans synaptic?

A+


skaara@jabber.anywise.com

Hors ligne

#12 Le 17/08/2005, à 13:21

eks

Re : [Info] Plus leger que gdesklet : Torsmo

Salut Tchaka

Perso je me contente pour le moment de torsmo 0.17, et Conky je l'ai pas essayé mais je l'ai vu essayer chez un pote, et il est mieux que torsmo (plus de variables incluses, graphs).
Il est pas encore dans les dépôt ubuntu (donc dans synaptic), mais j'espère qu'on y aura droit en breezy.
D'ici-là, si tu veux torsmo 0.18 ou Conky, rien ne t'empêche de les compiler toi-même wink

Dernière modification par eks (Le 17/08/2005, à 17:31)


eks

Hors ligne

#13 Le 17/08/2005, à 19:43

Tchaka

Re : [Info] Plus leger que gdesklet : Torsmo

Ok, merci pour ces précisions.

Je pense que dans un premier temps, je vais pas me casser la tete je vais essayer torsmo 0.17, suivant ce que ca donne dans mon environnement graphique je verrai si ca vaille le coup de voir pour la 0.18 ou conky

A+


skaara@jabber.anywise.com

Hors ligne

#14 Le 18/08/2005, à 01:42

neves

Re : [Info] Plus leger que gdesklet : Torsmo

J'ai compilé et installé conky hier, ca marche très bien sauf 3 choses:

- quand il est actif, j'ai une fenetre dans la liste des fenetres, et ca serait bien qu'elle n'y soit pas tongue dans la zone de notification ca serait tres bien smile Je peux changer ça ? (sachant que je suis avec gnome et que j'ai du configurer pour pas que ca clignote avec nautilus)

- plus important, il ne detecte pas les temperatures. J'ai donc installé lm_sensors, et rien de mieux (j'ai meme un fail au boot maitenant, je sais plus le terme exact mais ca parle de 'set sensors', ou un truc comme ca smile)

- j'aimerais bien ne plus avoir ces lignes là :

Conky: scandir for /sys/bus/i2c/devices/: No such file or directory
Conky: can't open /proc/apm: No such file or directory

c'est lié avec le point 2, l'histoire de l'i2c, mais j'en sais pas plus hmm

Quelqu'un saurait m'aider ? sinon c'est pas très important smile Ah oui je suis sur un portable.

mon .conkyrc :

# conky configuration

# 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 Bitstream Vera Sans Mono:size=5

# Text alpha when using Xft
xftalpha 1.0

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600

# Print everything to console?
# out_to_console no

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1.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

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

# Minimum size of text area
minimum_size 270 5

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 2

# border width
border_width 1

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

# 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 12
gap_y 12

# 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 no


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

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhos
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none

# METAR station code for weather, get codes from weather.noaa.gov or google
# or http://www.maltalinks.com/weather/ (thanks Hopeless @ f.g.o)
# metar_station  CYBW

# METAR ftp server
# metar_server weather.noaa.gov

# METAR path on server
# metar_path /data/observations/metar/stations

# boinc (seti) dir
# seti_dir /opt/seti

# 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, 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               
# 	
# 	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 green}$nodename - $sysname $kernel
$color$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Charge:$color $loadavg
${color lightgrey}CPU:${color #cc2222} $cpu% ${cpubar}
${color red}${cpugraph 0000ff ff0000}
${color lightgrey}RAM:$color $mem/$memmax - $memperc% ${membar}
${color lightgrey}Swap:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processus:$color $processes  ${color grey}Actif:$color $running_processes
$color$stippled_hr
${color green}Systeme de fichiers:
${color lightgrey} / $color${fs_used /}/${fs_size /} ${fs_bar /}
$color$stippled_hr
${color green}Connexion filaire :     Connexion Wifi :
    ${color blue}Up  :${color red} ${upspeedf eth0} k/s           ${color blue}Up  :${color red} ${upspeedf eth1} k/s
    ${color blue}Down:${color red} ${downspeedf eth0} k/s           ${color blue}Down:${color red} ${downspeedf eth1} k/s ${color blue}
$color$stippled_hr
${color green} Nom              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color green} Utilisation memoire
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$color$stippled_hr
${color green}Alimentation: ${color red}$acpiacadapter $acpitemp $battery
${color green}Temperatures: ${color red}CPU: ${i2c temp 2}C - MB: ${i2c temp 1}C
$color$stippled_hr

Dernière modification par neves (Le 18/08/2005, à 01:48)

Hors ligne

#15 Le 18/08/2005, à 14:18

eks

Re : [Info] Plus leger que gdesklet : Torsmo

Pour le fait qu'il ai une propre fenêtre, dans ton .conkyrc tu as :

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

change "yes" en "no"
Cette option n'est obligatoire que si tu as nautilus qui gère ton desktop, mais comme tu dis l'avoir retiré tu n'en a plus besoin.

Pour i2c, j'ai pas pris le temps de me pencher dessus. Ca ne marche pas, tant pis. Pour la température, je te suggère de faire comme moi, et d'utiliser acpitemp au lieu d'i2c


eks

Hors ligne

#16 Le 19/08/2005, à 06:49

neves

Re : [Info] Plus leger que gdesklet : Torsmo

eks a écrit :

Pour le fait qu'il ai une propre fenêtre, dans ton .conkyrc tu as :

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

change "yes" en "no"
Cette option n'est obligatoire que si tu as nautilus qui gère ton desktop, mais comme tu dis l'avoir retiré tu n'en a plus besoin.

En fait je me suis (très) mal exprimé tongue je voulais dire que j'utilisais Nautilus, et que mon .conkyrc était fait de telle sorte que ça fonctionne avec Nautilus.

eks a écrit :

Pour i2c, j'ai pas pris le temps de me pencher dessus. Ca ne marche pas, tant pis. Pour la température, je te suggère de faire comme moi, et d'utiliser acpitemp au lieu d'i2c

Pour i2c, je n'ai meme pas de dossier /sys/bus/i2c/, c'est pas normal ça ? Merci pour acpitemp smile Mais c'est la temperature de l'alimentation non ? Le CPU est souvent plus chaud que l'alim hmm

Hors ligne

#17 Le 19/08/2005, à 06:54

neves

Re : [Info] Plus leger que gdesklet : Torsmo

Ah c'est bon pour i2c, je sais maintenant qu'il ne me detecte pas mes sondes, si il y en a. Mais en tout cas y'a une ligne d'erreur en moins au lancement de conky, je prefere smile

Un bon tuto pour les sensors, au passage:

http://ubuntuforums.org/showthread.php?t=2780&highlight=sensors

Dernière modification par neves (Le 19/08/2005, à 07:17)

Hors ligne