System Monitor, aDesklets (config.txt)

System monitor em múltiplas instâncias

Categoria: Miscelânea

Software: System Monitor, aDesklets

[ Hits: 6.609 ]

Por: eu


Arquivo de configuração para mostrar o System Monitor em 3 blocos.

Para funcionar o System Monitor tem que ser registrado em 3 blocos. Provavelmente o nome da fonte terá que ser mudado.


# -*- coding: ASCII -*-
#
# This is SystemMonitor.py desklet configuration file.  Yes, it is complicated.
#    
# There is one main key "meters" which has a list of meters to include.  Each 
# meter is a 2-tuple of the meter type, and the configuration for the meter.  
# Presently available meter types are: CPUMeter, MemoryMeter, NetworkMeter,  
# DiskIOMeter, DiskSpaceMeter, TemperatureMeter, and BatteryMeter.  
# Those should all be self explanatory as to what they measure.
# 
# CPU, Memory, Swap and DiskSpace meters are straightforward, just provide the 
# images, font type and size, and padding internal to the meter.  Optionally
# you can add an update speed, to specify that this meter shoould check for
# updates less often.  Update speed should be set to the number of seconds
# between updates.
#  
# Network and DiskIO meters require additional information: NetworkMeters 
# require an interface name.  This must match up with a network interface, 
# so names should be of the sort eth0, ppp0, etc.  If you have multiple 
# interfaces, just add multiple network meters, one for each interface.  You 
# must also specify maximum download and upload speeds in kilobytes per second.  
# The scale is logarithmic, so if you  overshoot it doesn't matter much - 
# undershooting will make the meter max out all the time - be generous.  DiskIO 
# is similar, except you now need to supply the disk name (hda, hdb, hdc etc.) 
# and max read and write speeds.  Again, better not to underestimate those 
# figures.
# 
# TemperatureMeter and BatteryMeter require ACPI support.  If you don't have
# ACPI support these meters will simply display as blank, so just comment them
# out of the configuration.  For TemperatureMeter you must supply the file
# to read for temperatures (/proc/acpi/thermal_zone/THM/temperature on my 
# system), and the max_temp (in degrees celsius) to provide some scale.
# BatteryMeter requires you to provide two acpi files, the info and state
# files.  You also need to provide a label, as multiple batteries are 
# supported (simply add multiple BatteryMeters with multiple labels and
# different info and state files).
# 
# For meters that have multiple meters/krells (Network, DiskIO, DiskSpace)
# you can specify a list of images to use for the krells.  The list must be
# the same length as the number of meters/krells to be displayed (2 in the
# case of Network and DiskIO, variable depending on your patition config
# in the case of DiskSpace).
# 
# There are also keys for the background image set (a set of three images,
# given as a list), the background colour (what colour the background of the
# meter blocks is), and the text colour.  You can also specify a global
# update speed for all meters.  If the desklet is using too much CPU for you
# then throttle back the update speed to update every 5 seconds or so, which will
# drastically decrease CPU use.
# 
# An alternate configuration could look like:
# {"meters" : [
#              ("CPUMeter",
#               {
#                "icon" : "images/icons/cpu.png",
#                "trough" : "images/shared/trough.png",
#                "krell" : "images/shared/krell_blue.png",
#                "meter font name" : "Vera",
#                "meter font size" : 11,
#                "vertical padding" : 4,
#                "horizontal padding" : 12
#               }
#              ),
#              ("DiskSpaceMeter",
#               {
#                "icon" : "images/icons/disk.png",
#                "trough" : "images/shared/trough_small.png",
#                "krell" : "images/shared/krell_green_small.png",
#                "meter font name" : "Vera",
#                "meter font size" : 7,
#                "vertical padding" : 2,
#                "horizontal padding" : 12
#               }
#              ),
#              ("NetworkMeter",
#               {
#                "interface name" : "ppp0",
#                "max down speed" : 8,
#                "max up speed" : 5,
#                "icon" : "images/icons/network-ppp.png",
#                "trough" : "images/shared/trough.png",
#                "krell" : ["images/shared/krell_green_small.png",
#                           "images/shared/krell_red_small.png"],
#                "meter font name" : "Vera",
#                "meter font size" : 7,
#                "vertical padding" : 4,
#                "horizontal padding" : 8
#               }
#              )              
#             ],
#  "update_speed" : 5
# }               
#    
id0 = {'background colour': (210, 210, 210, 130),
 'background images': ['images/shared/bg_top.png',
                       'images/shared/bg_middle.png',
                       'images/shared/bg_bottom.png'],
 'meters': [('CPUMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/cpu.png',
              'krell': 'images/shared/krell.png',
              'meter font name': 'neurpoli',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'vertical padding': 8}),
            ('MemoryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/memory.png',
              'krell': 'images/shared/krell.png',
              'meter font name': 'neurpoli',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 10,
              'vertical padding': 8}),
            ('SwapMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/swap.png',
              'krell': 'images/shared/krell_blue.png',
              'meter font name': 'neurpoli',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id1 = {'background colour': (210, 210, 210, 130),
 'background images': ['images/shared/bg_top.png',
                       'images/shared/bg_middle.png',
                       'images/shared/bg_bottom.png'],
 'meters': [('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth0',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'neurpoli',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id2 = {'background colour': (210, 210, 210, 130),
 'background images': ['images/shared/bg_top.png',
                       'images/shared/bg_middle.png',
                       'images/shared/bg_bottom.png'],
 'meters': [('DiskIOMeter',
             {'disk name': 'hda',
              'horizontal padding': 8,
              'icon': 'images/icons/disk.png',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max read speed': 10240,
              'max write speed': 10240,
              'meter font name': 'neurpoli',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('DiskSpaceMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/diskfree.png',
              'krell': 'images/shared/krell_blue_small.png',
              'meter font name': 'neurpoli',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id3 = {'background colour': (210, 210, 210, 130),
 'background images': ['images/shared/bg_top.png',
                       'images/shared/bg_middle.png',
                       'images/shared/bg_bottom.png'],
 'meters': [('DiskSpaceMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/diskfree.png',
              'krell': 'images/shared/krell_blue_small.png',
              'meter font name': 'neurpoli',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
  


Comentários
[1] Comentário enviado por Miachon em 25/02/2008 - 15:48h

aew cara fui la editei coloquei igual se mando chamei adesklet dinovo e nd... to usando fluxbox tem como se se mais claro noque muda certinho ??

[2] Comentário enviado por cdvdt em 27/02/2008 - 09:52h

pode ser probema com a fonte (Neuropolitical), se você não tiver essa fonte não aparece mesmo, e você tem que registrar três vezes o System Monitor. Vai ficar assim:
http://www.vivaolinux.com.br/screenshots/verScreenshot.php?codigo=10164


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts