Configurazione Torsmo & Conky

Installazione, configurazione e uso di programmi e strumenti.
Avatar utente
Barcaro
Prode Principiante
Messaggi: 42
Iscrizione: martedì 14 marzo 2006, 11:50
Località: Trentino

Configurazione Torsmo & Conky

Messaggio da Barcaro »

Postate qui le vostre configurazioni di Torsmo, eccovi la mia:

Codice: Seleziona tutto

# torsmo configuration
double_buffer yes

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

# X font used, you can pick one with program xfontsel
font 5x7
xftfont verdana-8
#font 6x10
#font 7x13
#font 8x13
#font snap
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

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

# Draw shades?
draw_shades yes

# Draw borders around text
draw_borders yes
border_margin 7

# Stippled borders?
stippled_borders no

# Default colors and also border colors
#default_color gray51
#default_shadecolor gray41

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

# Substract file system buffers from used memory?
no_buffers yes

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

# Possible variables to be used: 
# 
#      Variable         Arguments                  Description 
#  acpiacadapter                     ACPI ac adapter state. 
#  acpifan                           ACPI fan state 
#  acpitemp                          ACPI temperature. 
#  battery           (name)          Remaining capasity in ACPI or APM 
#                                    battery. ACPI battery name 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 
#  temp1                             Temperature #1 from i2c-sensors, same as 
#                                    ${i2c temp 1} 
#  temp2                             Temperature #2 from i2c-sensors, same as 
#                                    ${i2c temp 2} 
#  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 


# 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}Time $color ${time %d/%m/%y - %H:%M} ${color grey}Uptime$color $uptime 
$stippled_hr
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6} 
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 6} 
$stippled_hr
${color grey}Disks:
${color grey}/          :$color ${fs_used /}/${fs_size /} - ${fs_bar 6 /}
$stippled_hr
${color grey}CPU Usage:$color $cpu% ${cpubar 6} 
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes    
$color$stippled_hr
${color grey}Networking interface:
 ${color grey}eth0:
 Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s 
 ${color grey}Up:$color ${totalup eth0} ${color grey} - Down:$color ${totaldown eth0}
Mi chiedevo se fosse possibile, magari con uno script sh apposito, integrare top in torsmo per monitorare i processi che mangiano più risorse. Che ne dite?
Ultima modifica di Barcaro il martedì 28 marzo 2006, 9:54, modificato 1 volta in totale.
Avatar utente
Barcaro
Prode Principiante
Messaggi: 42
Iscrizione: martedì 14 marzo 2006, 11:50
Località: Trentino

Re: Configurazione Torsmo

Messaggio da Barcaro »

Top non si integra con Torsmo ma al contrario è supportato da Conky, quindi ho risolto con quello.
Per il flickering/sfarfallio dovrebbe risolversi aggiungendo a Xorg.conf nella sezione Module il seguente codice:

Load "dbe"
Avatar utente
Barcaro
Prode Principiante
Messaggi: 42
Iscrizione: martedì 14 marzo 2006, 11:50
Località: Trentino

Re: Configurazione Torsmo

Messaggio da Barcaro »

Ecco il risultato:
Immagine
il codice di /home/utente/.conkyrc:

Codice: Seleziona tutto

# torsmo configuration
own_window yes
#    Boolean, create own window to draw?

#own_window_transparent
#    Boolean, set pseudo-transparency?

own_window_type desktop
double_buffer yes


use_xft yes

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

# X font used, you can pick one with program xfontsel
#font 5x7
xftfont verdana-9
#font 6x10
#font 7x13
#font 8x13
#font snap
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

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

# Draw shades?
draw_shades yes

# Draw borders around text
draw_borders no
border_margin 7

# Stippled borders?
stippled_borders no

# Default colors and also border colors
#default_color gray51
#default_shadecolor gray41

# 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 10
gap_y 30

# Substract file system buffers from used memory?
no_buffers yes

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

# 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
$nodename - $sysname $kernel on $machine
$stippled_hr
${color grey}Time $color ${time %d/%m/%y - %H:%M} ${color grey}Uptime$color $uptime 
$stippled_hr
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6} 
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 6} 
$stippled_hr
${color grey}Disks:
${color grey}/          :$color ${fs_free /}/${fs_size /} (${fs_free_perc /}%)
${fs_bar 6 /}
$stippled_hr
${color grey}CPU Usage:$color $cpu% ${cpubar 6} 
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes    
$color$stippled_hr
${color grey}Networking interface - ${color grey}eth0:
 Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
 ${upspeedgraph eth0 20,100} - ${downspeedgraph eth0 20,100}
 ${color grey}Up:$color ${totalup eth0} ${color grey} - Down:$color ${totaldown eth0}
$stippled_hr
${color grey}Dettaglio utilizzo CPU:
 ${top name 1}$color ${top_mem cpu 1}%
 ${color grey}${top name 2}$color ${top_mem cpu 2}%
 ${color grey}${top name 3}$color ${top_mem cpu 3}%

${color grey}Dettaglio utilizzo RAM:
 ${top_mem name 2}$color ${top_mem mem 2}%
 ${color grey}${top_mem name 3}$color ${top_mem mem 3}%
 ${color grey}${top_mem name 4}$color ${top_mem mem 4}%
Avatar utente
S[p]|llo
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 590
Iscrizione: giovedì 24 febbraio 2005, 14:31

Re: Configurazione Torsmo

Messaggio da S[p]|llo »

Barcaro ha scritto: Top non si integra con Torsmo ma al contrario è supportato da Conky, quindi ho risolto con quello.
Per il flickering/sfarfallio dovrebbe risolversi aggiungendo a Xorg.conf nella sezione Module il seguente codice:

Load "dbe"
Grazie mille, quello sfarfallio era insopportabile  ;D
Nella vita le cose migliori fanno male o sono immorali
O. Wilde
Avatar utente
Barcaro
Prode Principiante
Messaggi: 42
Iscrizione: martedì 14 marzo 2006, 11:50
Località: Trentino

Re: Configurazione Torsmo & Conky

Messaggio da Barcaro »

Perché quando lancio conky all'avvio (nello script d'avvio di fluxbox) mi esce con un font diverso da quello che mi esce se lo avvio da terminale??
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 12 ospiti