Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
Test de l'ISO d'Ubuntu francophone : nous avons besoin de testeurs pour la version francophone d'Ubuntu 14.04. Liens et informations ici.

Attention, une faille de sécurité dans bash a récemment été rapportée, il est recommandé de mettre à jour son système (plus de détails)

#601 Le 27/01/2007, à 16:48

Blondin

Re : [HOW TO] adesklets : configuration des desklets

Je ne trouve de solution direct, nullpart....
C'est sans doute très simple mais weatherforecast au démarrage donne un fond du desklets brouillé, en faisant restart il est soit noir soit transparent avec un voile rouge, mon rêve, la transparence complète....
Dans mon config.txt, il n'est pas questions d'autre chose que de l'image de fond....
Merci

Edit : trop évident, la prochaine fois je retournerais 14 fois mes doigts avant de taper sur le clavier, désolé...

Dernière modification par Blondin (Le 28/01/2007, à 01:58)


Qui troll un oeuf, troll un boeuf

Hors ligne

#602 Le 04/02/2007, à 18:53

Chupa

Re : [HOW TO] adesklets : configuration des desklets

bonsoir à toutes et à tous !

j'ai quand meme une petite question.

en recopiant le config.txt de Aldones, mais après un certain temps de bidouillage, voici mon config.txt (il se ralonge tout seul...)

id0 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png.png',
              'meter font name': 'Vera',
              '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_blue_small.png.png',
              'meter font name': 'Vera',
              '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_small.png.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id1 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id10 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id11 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id12 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id13 = {'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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
             {'horizontal padding': 8,
              'icon': 'images/icons/diskfree.png',
              'krell': 'images/shared/krell_blue_small.png',
              'meter font name': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id14 = {'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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id15 = {'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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id2 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id20 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),,
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id21 = {'background colour': (210, 210, 210, 0),
 '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id3 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id4 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id5 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id6 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id7 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id8 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}
id9 = {'background colour': (210, 210, 210, 0),
 '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_blue_small.png',
              'meter font name': 'Vera',
              '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_blue_small.png',
              'meter font name': 'Vera',
              '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_small.png',
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('NetworkMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/network.png',
              'interface name': 'eth1',
              'krell': ['images/shared/krell_green_small.png',
                        'images/shared/krell_red_small.png'],
              'max down speed': 400,
              'max up speed': 80,
              'meter font name': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red_small.png',
              'max_temp': 100.0,
              'meter font name': 'Vera',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green_small.png',
              'label': '',
              'meter font name': 'Vera',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (97, 205, 252, 200),
 'update speed': 1}

ya un problème non? en plus un config si long, csuper difficile de voir si on a bien changé partout au meme endroit (-enfin jme comprends big_smile)

Quelqun aurait une idée pour éviter que celui-ci s'allonge jusqu'à je ne sais pas où? merci !

Dernière modification par Chupa (Le 05/02/2007, à 17:02)

Hors ligne

#603 Le 05/02/2007, à 21:32

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

Salutation tous et toutes, j'ai voulu réinstaller les desklets sur mon portable également. Malheureusement, je reste bloqué à l'installation de lm-sensors... hmm
J'ai suivi le même tuto, seule différence, j'utilise edgy au lieu de dapper...


lorsque je fais :

fhiernaux@gemini:~$ sudo modprobe i2c-sensor
FATAL: Module i2c_sensor not found.
fhiernaux@gemini:~$

et lancer les sensors me donne ceci

fhiernaux@gemini:~$ sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!

comment résoudre ce problème??


Pour rappel, j'ai besoin de lm-senors pour system monitor dont j'avais expliqué le fonctionnement il y a de celà qq mois (copie ci-dessous de la manip d'alors...)

Efhache84 a écrit :

C'était déjà fait ici : http://forum.ubuntu-fr.org/viewtopic.ph … 70#p387170

Certes, mauvais endroit... je copie donc ici...



Copie du post dont le lien est donné ci-dessus:



Raaah je ne sais pas si vous êtes assez gentil? tongue


Bon allez je suis de bonne humeur...

Tout d'abord il faut installer lm-sensors (moi je suis passé par synaptic... mais rien n'empèche de passer par la console je suppose)
Pour l'installation, j'ai suivit le super tuto dispo sur la doc à cette adresse http://doc.ubuntu-fr.org/materiel/sensors?s=sensors

attention que lorsque vous faites yes à toutes les questions, ne vous étonnez pas si le terminal semble freezé de temps à autres... c'est normal... (moi j'ai fermé bêtement le terminal et j'ai recommencé pour constater que c'était normal)  ça prend du temps, car il cherche à tester toute les puces de sa librairies... (de Maxim dallas à Linear en passant par National et TI...)

Ensuite rendez-vous ici pour les explications de syfou : http://adesklets.sourceforge.net/forum/ … =1997#1997

Bon pour les commandes cat etc, pas oublier que path/to c'est votre répertoire... ne faites pas ça quand vous avez un verre dans le nez... ça peut aider roll

Sinon en rapide et en fraçais, il suffit d'ouvrir le fichier systemmonitor.py, de rechercher class temperature et de modifier la ligne avec get meter par :

def getMeterValues(self):
        read_value = float(file(self.file).read().strip())
        text_value = '%.1f' % (read_value/1000)
        krell_value = float(text_value)/self.max_temp

        return [krell_value,], [text_value,]

De sauvegarder, d'aller dans votre config.text, renseigner le fichier temp2_input (ou tout autre renseigné par lm-sensors)

de relancer le fichier python dans le terminal (avec r), de relancer les desklets (adesklets --nautilus) et là oooh miracle la température... big_smile

un petit coup de

gedit .adesklets

histoire de voir que seul un systemmonitor est lancé (pas besoin d'en avoir un bon qui s'affiche et un foireux qui reste non affiché...)


Vous pouvez rajouter ensuite dans le config.text, des copier/coller de la partie température précédente pour voir s'afficher les autres températures (il suffit pour ça de modifier dans la copier le fichier à lire... dans mon cas j'ai rajouté temp1)...


Voilà maintenant je cherche un autre icône pour ne pas avoir deux fois la même icône... genre une petite puce avec un petit thermomètre pour signifier la température de la carte mère... donc si quelqu'un de fort doué en dessin se retrouve, voici ce que j'ai en ce moment :

http://img82.imageshack.us/img82/1370/capture1fh9.png

Il faudrait que le deuxième tux avec un thermomètre soit remplacer par qqch de plus signifcatif pour la température de la carte mère...


NB : en ce qui concerne l'icône supplémentaire, je l'ai réalisée moi-même (en récupérant les engrenages)... donc plus de soucis de ce côté là...


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#604 Le 07/02/2007, à 00:13

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

une petite aide pour finaliser l'install des adesklets? c'est vraiment lm-sensors qui me manque pour mes desklets hmm


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#605 Le 07/02/2007, à 16:56

|-Corpse-|

Re : [HOW TO] adesklets : configuration des desklets

Je ne sais pas si c'est vraiment utile, mais j'ai adapté system monitor pour avoir la vitesse de rotation des ventilos. Tout d'abord, localisez le fichier fan1_input :

sudo find /sys/ -name fan1_input

Avec le résultat, faites (à adapter !) :

cat /sys/devices/platform/i2c-9191/9191-0290/fan1_input

et voyez si ca donne quelque chose. Si c'est le cas, alors vous pouvez tenter ceci : ajoutez dans le fichier SystemMonitor.py le code suivant :

# get fan speed information and display in a meter        
class FanSpeedMeter (ACPIMeter):
    
    def create(self, location, basedir, config_dictionary):

        config_dictionary["base text"] = ("Fan speed",)
        config_dictionary["value text length"] = (6,)
        
        self.max_fan = config_dictionary["max_fan"]
        
        ACPIMeter.create(self, location, basedir, config_dictionary)
        
    def getMeterValues(self):
        read_value = float(file(self.file).read().strip())
        text_value = '%.1f' % (read_value)
        krell_value = float(text_value)/self.max_fan

        return [krell_value,], [text_value,]

Mes compétences en Python étant inexistantes, je ne sais pas si il y a un endroit plus approprié qu'un autre pour placer le code. A tout hasard, j'ai placé cette classe après la classe TemperatureMeter.
Ensuite, dans le fichier config.txt, il faut ajouter de la façon suivante :

            ('FanSpeedMeter',
             {'file': '/sys/devices/platform/i2c-9191/9191-0290/fan1_input',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_fan': 10000.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),

où 'file' est le fichier à lire (testez avec fan2_input et fan3_input) et 'max_fan' la vitesse de rotation maximale (qui se trouve dans fan1_min).

Comme vous pouvez le constater, ca n'est qu'un simple copier-coller de la méthode donnée par Efhache84 pour lire la température ailleurs que dans /proc/acpi/... avec adaptation des noms de variables. D'ailleurs, c'est tout à fait possible de créer une classe pour la température du CPU, une pour la température de la MB, etc. Il suffit de changer le nom de la classe et de la variable self.max_temp (et éventuellement sa valeur).

Vous pouvez aussi constater que j'ai mis l'icone de température, car je n'ai pas encore d'icone de ventilo (d'ailleurs, si vous en avez une, ca m'intéresse).

Dernière modification par |-Corpse-| (Le 07/02/2007, à 17:09)

Hors ligne

#606 Le 22/02/2007, à 16:30

NOKSY

Re : [HOW TO] adesklets : configuration des desklets

Bonjour,
Quelqu'un saurait me dire comment enlever le contour dans SystemMonitor sous Adesklets.

noksy.png

Merci

Hors ligne

#607 Le 22/02/2007, à 17:06

Oni

Re : [HOW TO] adesklets : configuration des desklets

NOKSY a écrit :

Bonjour,
Quelqu'un saurait me dire comment enlever le contour dans SystemMonitor sous Adesklets.
Merci

Salut.

Il faut que tu rendes transparente les images "bg-bottom.png", "bg_middle.png" et bg_top.png" dans le dossier "shared" du répertoire SystemMonitor, avec Gimp.

wink


« La nature a créé des différences, l'Homme en a fait des inégalités. »

Hors ligne

#608 Le 22/02/2007, à 17:26

|-Corpse-|

Re : [HOW TO] adesklets : configuration des desklets

plus simple et moins radical pour la transparence :

ottomar a écrit :

salut,
id0 = {'background colour': (210, 210, 210, 130),
le quatrième nombre correspond à la transparence (échelle sur 255)
210, 210, 210, 0 c'est transparent !

Hors ligne

#609 Le 23/02/2007, à 15:51

NOKSY

Re : [HOW TO] adesklets : configuration des desklets

ottomar : J'ai testé, il y a du mieux mais c'est pas encore le top, voyez plutôt :

noksy2.png

Oni ? je pense que ta solution va completer solutionner mon probleme, mais je n'y connais strictement rien en graphisme, peux tu m'éclairer ?

Merci à vous 2 en tout cas.

A+

Hors ligne

#610 Le 23/02/2007, à 16:29

Oni

Re : [HOW TO] adesklets : configuration des desklets

Pour chacune des trois images précédemment citées, tu les ouvre avec Gimp, puis Outils --> Outils de sélection --> Sélection contiguë.

Là tu cliques sur le petit cadre à enlever, cela va te le sélectionner.
Un Ctrl+X pour l'ôter et tu enregistres.
Je crois que pour l'image bottom, il faut faire la "manip" deux fois (deux petits cadres à enlever).

wink


« La nature a créé des différences, l'Homme en a fait des inégalités. »

Hors ligne

#611 Le 23/02/2007, à 17:10

NOKSY

Re : [HOW TO] adesklets : configuration des desklets

Merci beaucoup, mon problème est résolu.

A+

Hors ligne

#612 Le 01/03/2007, à 13:30

Tcheub

Re : [HOW TO] adesklets : configuration des desklets

Bonjour! smile
Je ai débarqué fraichement sur Ubuntu, et j'ai un souci que je n'arrive pas à résoudre. sad

J'ai installé via Synaptic la version 0.5.0-2 d'adesklets.. sans problème.. J'ai rajouté dans Sessions\programmes au démarrrage\ "adesklets --nautilus" puis "adesklets -d 5",

et rien ! En fait je ne sais pas si ça marche ou pas parce que rien n'a changé (je pencherai quand même pour dire que ça ne marche pas tongue)

Y-a-t-il d'autres choses à installer ? des modifs ? Mon but étant d'avoir sur le bureau des "trucs" comme l'espace dispo sur mes disques, la météo...

Merci pour votre aide ! wink


Ubuntu Hardy en dual boot avec XP
Asus A6va + E8200
Mon blog aux stazes

Hors ligne

#613 Le 01/03/2007, à 15:05

Oni

Re : [HOW TO] adesklets : configuration des desklets

Tcheub a écrit :

Bonjour! smile
Je ai débarqué fraichement sur Ubuntu, et j'ai un souci que je n'arrive pas à résoudre. sad

J'ai installé via Synaptic la version 0.5.0-2 d'adesklets.. sans problème.. J'ai rajouté dans Sessions\programmes au démarrrage\ "adesklets --nautilus" puis "adesklets -d 5",

et rien ! En fait je ne sais pas si ça marche ou pas parce que rien n'a changé (je pencherai quand même pour dire que ça ne marche pas tongue)

Y-a-t-il d'autres choses à installer ? des modifs ? Mon but étant d'avoir sur le bureau des "trucs" comme l'espace dispo sur mes disques, la météo...

Merci pour votre aide ! wink

Salut. smile

As-tu bien enregistrés tes desklets via le terminal ?

Par exemple places toi dans ton dossier desklets, ouvre un terminal et fait ./weatherforecast.py (si tu veux par exemple enregistrer la météo).

Là on te demande si tu veux enregistrer le desklet ou seulement le tester.
Tu tapes "r". wink

Puis ensuite dans "sessions" tu mets "adesklets --nautilus -d4" pour que tes desklets enregistrés se lancent au démarrage (au bout de 4 secondes par exemple).

wink


« La nature a créé des différences, l'Homme en a fait des inégalités. »

Hors ligne

#614 Le 02/03/2007, à 11:12

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

salutation bon je reviens à la charge avec mon soucis de temperature non affiché...

j'arrive à l'obtenir en console avec la commande

cat /proc/acpi/thermal_zone/TZ00/temperature

mais si je renseigne le chemin dans system monitor toujours un read failure....
Quelqu'un pour aider???


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#615 Le 12/03/2007, à 23:18

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

salutation j'ai un petit soucis avec le desklets photos0.0.5 en fait il semblerait que je l'ai lancer plusieurs fois (???) dans mon conifg j'ai des id0 à id5... et quand les desklets se lancent dans nautilus, j'ai 5 fois le photo...

Où doit-on supprimer les entrées des deskelts? dans le config de photo ce n'est pas ça, car j'ai beau laisser que id0, si je relance desklets, ils reviennent tous... enfin si je ne m'abuse...


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#616 Le 13/03/2007, à 00:14

Oni

Re : [HOW TO] adesklets : configuration des desklets

Efhache84 a écrit :

salutation j'ai un petit soucis avec le desklets photos0.0.5 en fait il semblerait que je l'ai lancer plusieurs fois (???) dans mon conifg j'ai des id0 à id5... et quand les desklets se lancent dans nautilus, j'ai 5 fois le photo...

Où doit-on supprimer les entrées des deskelts? dans le config de photo ce n'est pas ça, car j'ai beau laisser que id0, si je relance desklets, ils reviennent tous... enfin si je ne m'abuse...

Click droit sur le desklet et "Quit" ça donne quoi ? wink

Dernière modification par Oni (Le 13/03/2007, à 00:15)


« La nature a créé des différences, l'Homme en a fait des inégalités. »

Hors ligne

#617 Le 13/03/2007, à 08:47

golgot200

Re : [HOW TO] adesklets : configuration des desklets

Bonjour,

Un photo.py & un config.txt qui fonctionne chez moi au cas où.

photo.py

#!/usr/bin/env python
"""
photo - <goldie@drama.pl>
 Small Photo Gallery
"""
import adesklets
from random import shuffle
from os import getenv, spawnlp, P_NOWAIT, listdir
from os.path import join, dirname, split

class Config(adesklets.ConfigFile):
	cfg_default = { 'width': 321,
					'height': 428,
					'font': 'Vera',
					'font_size': 8,
					'font_color': '666666',
					'picture_background_color': '000000',
					'border_color': 'cccccc',
					'delay': 10,
					'fadding': False,
					'caption': True,
					'full_path_in_caption': False,
					'random': True,
					'files': 'files.list',
					'filelists': [ 'files.list', 'other.list' ]
				   }

	def __init__(self,id,filename):
		adesklets.ConfigFile.__init__(self,id,filename)

	def color(self,string):
		colors = [eval('0x%s' % string[i*2:i*2+2]) for i in range(len(string)/2)]
		if (len(colors) != 4): colors += [255]
		return colors

#------------------------------------------------------------------------------
class PhotoDesklet(object):
	def __init__(self, config, basedir):
		self.config = config
		self.basedir = basedir

	def __call__(self):
            #self._file_list=self.loadfile(join(self.basedir,self.config['files']))
            # mes modifs !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            d = self.loadfile(join(self.basedir,self.config['files']))
            l = listdir(d[0])
            ll = []
            for f in l :
                ff = join(d[0],f)
                ll.append(ff)
            self._file_list = ll
            print self._file_list
            # fin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


	def loadfile(self, file):
		self._all_ok=True
		try:
			f = open(file)
			list = f.read()
			f.close()
		except IOError, (errno, strerror):
			self._all_ok = "I/O error(%s): %s - %s" % (errno, file, strerror)
			return []
		k = list.split('\n')
		if (k[len(k)-1] ==""):
			k.pop()
		if (self.config['random']):
			shuffle(k)
		self._file_list_count = len(k)
		self._current_file = -1
		return k

	def nextfile(self):
		if (self._current_file + 1 >= self._file_list_count):
			if (self.config['random']):
				shuffle(self._file_list)
			self._current_file = 0
		else:
			self._current_file = self._current_file + 1
		#print 'next: %s %d/%d' % (self._file_list[self._current_file], self._current_file, self._file_list_count)
		return self._current_file

	def prevfile(self):
		if (self._current_file == 0):
			if (self.config['random']):
				shuffle(self._file_list)
			self._current_file = self._file_list_count - 1
		else:
			self._current_file = self._current_file - 1
		#print 'prev: %s %d/%d' % (self._file_list[self._current_file], self._current_file, self._file_list_count)
		return self._current_file

	def actfile(self):
		return self._file_list[self._current_file]

#-----------------------------------------------------------------------------
class Events(adesklets.Events_handler):
	def __init__(self, basedir):
		if len(basedir)==0:
			self.basedir='.'
		else:
			self.basedir=basedir
		adesklets.Events_handler.__init__(self)

	def __del__(self):
		adesklets.Events_handler.__del__(self)

	def ready(self):
		self.config=Config(adesklets.get_id(),
						   join(self.basedir,'config.txt'))
		self.photo_desklet = PhotoDesklet(self.config, self.basedir)
		self.photo_desklet()
		self._caption_font = adesklets.load_font('%s/%d' % (self.config['font'], self.config['font_size']))
		self._caption_font_color = (self.config['font_color'])
		adesklets.context_set_font(self._caption_font)
		text_width, text_height = adesklets.get_text_size("My")
		if(self.config['caption']):
			self._full_height = self.config['height'] + text_height + 32
			self._buffer_height = self.config['height'] + text_height + 5
		else:
			self._full_height = self.config['height'] + 32
			self._buffer_height = self.config['height'] + 5
		self._full_width = self.config['width'] + 32
		self._buffer_width = self.config['width'] + 2
		adesklets.window_resize(self._full_width,self._full_height)
		adesklets.window_set_transparency(True)
		self._paused=False
		self._direction_next = True
		self._manual_change = False
		self._refresh_menu()
		adesklets.context_set_color(*(self.config.color(self.config['font_color'])))
		adesklets.image_draw_line(4,8,self._full_width-4,8,0)
		adesklets.image_draw_line(4,self._full_height-8,self._full_width-4,self._full_height-8,0)
		adesklets.image_draw_line(8,4,8,self._full_height-4,0)
		adesklets.image_draw_line(self._full_width-8,4,self._full_width-8,self._full_height-4,0)
		adesklets.window_show()
		self._buffer=adesklets.create_image(self._buffer_width,self._buffer_height)

	def _refresh_menu(self):
		adesklets.menu_reset_all()
		adesklets.menu_add_separator()
		adesklets.menu_add_submenu('File lists')
		for x in self.config['filelists']:
			adesklets.menu_add_item(x)
		adesklets.menu_end_submenu()
		if not self._paused:
			if self._direction_next:
				adesklets.menu_add_item('Change direction to: backward')
			else:
				adesklets.menu_add_item('Change direction to: forward')
			adesklets.menu_add_item('Pause')
		else:
			adesklets.menu_add_item('Show next image')
			adesklets.menu_add_item('Show previous image')
			adesklets.menu_add_item('Unpause')
		adesklets.menu_add_separator()
		adesklets.menu_add_item('Configure')

	def display(self):
		if (self.photo_desklet._all_ok == True):
			pic = adesklets.load_image(self.photo_desklet.actfile())
			adesklets.context_set_image(pic)
			pic_width = adesklets.image_get_width()
			pic_height = adesklets.image_get_height()
			percent = 1.0
			perc2 = 1.0
			if (pic_width > self.config['width']):
				percent = self.config['width'] / float(pic_width)
			if (pic_height > self.config['height']):
				perc2 = self.config['height'] / float(pic_height)
			if perc2 < percent:
				percent = perc2
			p_width = pic_width * percent
			p_height = pic_height * percent
			p_top = 1 + (self.config['height'] - p_height)/2
			p_left = 1 + (self.config['width'] - p_width)/2
		adesklets.context_set_image(self._buffer)
		adesklets.context_set_color(0,0,0,0)
		adesklets.context_set_blend(False)
		adesklets.image_fill_rectangle(0, 0, self._buffer_width, self._buffer_height)
		adesklets.context_set_color(*(self.config.color(self.config['border_color'])))
		adesklets.image_draw_rectangle(0, 0, self.config['width']+2, self.config['height']+2)
		adesklets.context_set_color(*(self.config.color(self.config['picture_background_color'])))
		adesklets.image_fill_rectangle(1, 1, self.config['width'], self.config['height'])
		adesklets.context_set_color(*(self.config.color(self.config['font_color'])))
		if (self.photo_desklet._all_ok == True):
			if self.config['caption']:
				if self.config['full_path_in_caption']:
					adesklets.text_draw(0,self.config['height']+5,self.photo_desklet.actfile())
				else:
					path, file = split(self.photo_desklet.actfile())
					adesklets.text_draw(0,self.config['height']+5,file)
			adesklets.blend_image_onto_image(pic, 1, 0, 0, pic_width, pic_height, p_left, p_top, p_width, p_height)
		else:
			adesklets.context_set_color(*(self.config.color("ff0000")))
			adesklets.text_draw(0,self.config['height']+5,self.photo_desklet._all_ok)
		adesklets.context_set_image(0)
		adesklets.blend_image_onto_image(self._buffer, 1, 0, 0, self._buffer_width, self._buffer_height, 16, 16, self._buffer_width, self._buffer_height)
		if (self.photo_desklet._all_ok == True):
			adesklets.free_image(pic)
		#print adesklets.images_info()
		
	def alarm(self):
		if not self._paused or self._manual_change:
			self._manual_change = False
			self.block()
			if (self.photo_desklet._all_ok == True):
				if self._direction_next:
					self.photo_desklet.nextfile()
				else:
					self.photo_desklet.prevfile()
			self.display()
			self.unblock()
		return max(self.config['delay'],1)	

	def _show_pause(self):
		if self._paused:
			self.block()
			buffer_pause=adesklets.create_image(16,16)
			adesklets.context_set_image(buffer_pause)
			adesklets.context_set_color(0,0,0,255)
			adesklets.image_fill_rectangle(0, 0, 16, 16)
			adesklets.context_set_color(255,255,255,200)
			adesklets.image_draw_rectangle(0, 0, 16, 16)
			adesklets.context_set_color(255,0,0,255)
			adesklets.image_fill_rectangle(3, 3, 4, 10)
			adesklets.image_fill_rectangle(9, 3, 4, 10)
			adesklets.context_set_image(0)
			adesklets.blend_image_onto_image(buffer_pause, 1, 0, 0, 16, 16, 24, 24, 16, 16)
			adesklets.free_image(buffer_pause)
			self.unblock()
			
	def button_press(self, delayed, x, y, button):
		change_menu = False
		if not delayed and button==1:
			self._paused = not self._paused
			change_menu = True
		if not delayed and button==4:
			self._direction_next = False
			self._manual_change = True
			change_menu = True
			if self._paused:
				change_menu = False
				self.alarm()
		if not delayed and button==5:
			self._direction_next = True
			self._manual_change = True
			change_menu = True
			if self._paused:
				change_menu = False
				self.alarm()
		self._show_pause()
		if change_menu:
			self._refresh_menu()

	def menu_fire(self, delayed, menu_id, *item):
		if item==('Configure',):
			editor=getenv('EDITOR')
			if editor:
				self._execute('xterm -e %s ' % editor +
					join(self.basedir,'config.txt'))
		if item==('Change', 'direction', 'to', 'backward'):
			self._direction_next = False
			self._refresh_menu()
		if item==('Change', 'direction', 'to', 'forward'):
			self._direction_next = True
			self._refresh_menu()
		if item==('Show', 'next', 'image'):
			self._direction_next = True
			self._manual_change = True
			self.alarm()
			self._refresh_menu()
		if item==('Show', 'previous', 'image'):
			self._direction_next = False
			self._manual_change = True
			self.alarm()
			self._refresh_menu()
		if item==('Pause',) or item==('Unpause',):
			self._paused = not self._paused
			self._refresh_menu()
		# the file names can not have spaces or other special characters
		# they have to have an extension
		if len(item)==2:
			for x in self.config['filelists']:
				r = x.split('.')
				a, b = item
				if r[0] == a and r[1] == b:
					#reset all - load new file list
					print "loading " + x
					join(self.basedir,self.config['files'])
					self.photo_desklet._file_list = self.photo_desklet.loadfile(join(self.photo_desklet.basedir,x))
		self._show_pause()

	def _execute(self,command):
		spawnlp(P_NOWAIT, command.split()[0], *command.split())
#------------------------------------------------------------------------------
# Start running
Events(dirname(__file__)).pause()

conf.txt

# -*- coding: ASCII -*-
id0 = {'border_color': '4B4737',
 'caption': False,
 'delay': 5,
 'fadding': False,
 'filelists': ['files.list', 'other.list'],
 'files': 'files.list',
 'font': 'Vera',
 'font_color': '1C1C1C',
 'font_size': 8,
 'full_path_in_caption': False,
 'height': 150,
 'picture_background_color': '1C1C1C',
 'random': True,
 'width': 250}
id1 = {'border_color': 'cccccc',
 'caption': True,
 'delay': 5,
 'fadding': False,
 'filelists': ['files.list', 'other.list'],
 'files': 'files.list',
 'font': 'Vera',
 'font_color': '666666',
 'font_size': 8,
 'full_path_in_caption': False,
 'height': 428,
 'picture_background_color': '000000',
 'random': True,
 'width': 321}

Avec dans mon home un dossier "Photos" et mes photos redimentionnées en
Largeur : 245 pixels
Hauteur : 145 pixels
Avec GThumb.

Dernière modification par golgot200 (Le 13/03/2007, à 08:48)


"L’ultime question … L’intelligence a besoin de la Bêtise pour s’affirmer, La Beauté a besoin de la Laideur pour resplendir, Le Courage naît dans la Peur, Les Forts impressionnent au milieu des Faibles, Mais au final,…Qui a donc besoin d’autant de connards ?"

Hors ligne

#618 Le 18/03/2007, à 15:18

Tcheub

Re : [HOW TO] adesklets : configuration des desklets

Hello!

Bon je reviens à la charge avec mon problème : j'ai installé aDesklets 0.6.1 (en suivant le tuto que l'on trouve dans ce forum), puis adeskclock-0.1.0.

Je n'ai pas vu de problème pendant ces installes.

Mon soucis est que l'horloge n'apparait pas.. Je pense cependant que ça marche "à moitié" car lorsque j'arrête Ubuntu, l'horloge apparait tout en haut à gauche, pendant un court laps de temps.. Je vous avoue que je souhaiterais que l'horloge soit visible constamment tongue


Ubuntu Hardy en dual boot avec XP
Asus A6va + E8200
Mon blog aux stazes

Hors ligne

#619 Le 18/03/2007, à 15:21

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

Oni a écrit :
Efhache84 a écrit :

salutation j'ai un petit soucis avec le desklets photos0.0.5 en fait il semblerait que je l'ai lancer plusieurs fois (???) dans mon conifg j'ai des id0 à id5... et quand les desklets se lancent dans nautilus, j'ai 5 fois le photo...

Où doit-on supprimer les entrées des deskelts? dans le config de photo ce n'est pas ça, car j'ai beau laisser que id0, si je relance desklets, ils reviennent tous... enfin si je ne m'abuse...

Click droit sur le desklet et "Quit" ça donne quoi ? wink

bah j'avais déjà tenté ça a pas marché mais depuis 2 jours c'est nickel... je devais avoir bu trop d'eau la première fois lol


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#620 Le 24/03/2007, à 18:00

JamesXB

Re : [HOW TO] adesklets : configuration des desklets

Bonjour,

j'ai installer adesklets 0.5.0-2 via synaptic mes desklets meteo et yab ce lance correctement au demarrage, par contre system monitor impossible qui ce lance, je ne comprends pas le problème sad je fait donc appele vous.

Hors ligne

#621 Le 25/03/2007, à 13:18

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

Probablement une configuration erronnée dans le fichier config...

poste le fichier ici...


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#622 Le 27/03/2007, à 19:21

JamesXB

Re : [HOW TO] adesklets : configuration des desklets

# -*- 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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              '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': [('CPUMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/cpu.png',
              'krell': 'images/shared/krell.png',
              'meter font name': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 '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': [('CPUMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/cpu.png',
              'krell': 'images/shared/krell.png',
              'meter font name': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id20 = {'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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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}
id21 = {'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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 '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': [('CPUMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/cpu.png',
              'krell': 'images/shared/krell.png',
              'meter font name': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id4 = {'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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id5 = {'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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}
id6 = {'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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('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': 'Vera',
              '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': 'Vera',
              'meter font size': 6,
              'trough': 'images/shared/trough_small.png',
              'update speed': 60,
              'vertical padding': 2}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/THM/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_red.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8}),
            ('BatteryMeter',
             {'horizontal padding': 8,
              'icon': 'images/icons/battery.png',
              'info_file': '/proc/acpi/battery/BAT0/info',
              'krell': 'images/shared/krell_green.png',
              'label': '',
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'state_file': '/proc/acpi/battery/BAT0/state',
              'trough': 'images/shared/trough.png',
              'update_speed': 10,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}

Voici mon config.txt peut etre que je devrai enlever option batterie, comme je n'ai pas de portable, merci.

capturell6.th.png

Hors ligne

#623 Le 27/03/2007, à 20:55

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

Oui enlève l'option batterie mais tu enlèves surtout tous les groupes id... voici le mien pour info... test avec celui-là si jamais le tiens ne fonctionne pas mieux...

# -*- 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': 'VeraBd',
              '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': 'VeraBd',
              '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': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update speed': 30,
              'vertical padding': 8}),
            ('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': 'Vera',
              'meter font size': 7,
              'trough': 'images/shared/trough_small.png',
              'update speed': 2,
              'vertical padding': 4}),
            ('TemperatureMeter',
             {'file': '/proc/acpi/thermal_zone/TZ00/temperature',
              'horizontal padding': 8,
              'icon': 'images/icons/temperature.png',
              'krell': 'images/shared/krell_green.png',
              'max_temp': 100.0,
              'meter font name': 'VeraBd',
              'meter font size': 8,
              'trough': 'images/shared/trough.png',
              'update_speed': 30,
              'vertical padding': 8})],
 'text colour': (0, 0, 0, 200),
 'update speed': 1}

Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

#624 Le 27/03/2007, à 23:41

JamesXB

Re : [HOW TO] adesklets : configuration des desklets

Excellent, merci, sa marche super wink

Hors ligne

#625 Le 28/03/2007, à 09:03

Efhache84

Re : [HOW TO] adesklets : configuration des desklets

de rien... si tu as encore besoin d'aide wink


Aspire 5633 WLMi - Lucid Lynx 10.04 en 64 bits

Hors ligne

Haut de page ↑