pyosdmon

Introduction

Pyosdmon is a set of Python plugins that monitor system resources. Examples of monitors are:

Pyosdmon implements a simple invisible panel which holds the plugin's output. Each plugin is placed in a panel window. Plugins' output is a text that is written to the screen through the xosd interface.

For example, possible panel configurations are showed as follows:

+---------+---------+---------+---------+
| plugin1 | plugin2 | plugin3 | plugin4 |
+---------+---------+---------+---------+
| plugin5 | plugin6 | plugin7 | plugin8 |
+---------+---------+---------+---------+


+---------+
| plugin1 |
+---------+
| plugin2 |
+---------+
| plugin3 |
+---------+
| plugin4 |
+---------+
| plugin5 |
+---------+

The number of rows and columns and the position of the panel in the screen are configurable, as well as font size, style, and color.

Each window of the panel, where plugins sit, has the following format:

<caption> <value> <unit> <bar_char>

Except for <value>, all other components are configurable through plugins' configuration file (individually for each plugin).

Screenshot thumbnail 1 screenshot1 (bigger)
Screenshot thumbnail 2 screenshot2 (bigger)
Screenshot thumbnail 3 screenshot3 (bigger)

Requirements

Pyosdmon requires the latest version of pyosd and all its dependencies to run.

Plugins

Currently the following plugins are implemented:

Using

Change to pyosdmon's directory and execute it:

$ ./pyosdmon

Since the default is showing no plugin, you'll have to use a configuration file. You can take one from the sample directory or you can build your own.

Configuration

Global attributes of the panel are configured in the file ~/.pyosdmon/global.conf and per-plugin configuration are set in ~/.pyosdmon/plugins/<plugin-name>.conf.

Configuration files are simple Python files (see examples in the samples directory in the distribution).

The global configuration file ~/.pyosdmon/global.conf must have the following line before all the attributes configuration:

from plugins.plugins import *

Global configuration

Per-plugin configuration

Besides these attributes, plugins can have particular ones. Check the variable defaults in plugins' code to find out what the attributes are.

Runtime control

Pyosdmon can have some configurations changed during runtime. You can control it by inserting commands into the ~/.pyosdmon/control file. Control commands are the same as used in the global configuration file. Additionally, there are some more:

Examples:

$ echo 'stop = True' > ~/pyosdmon/control

$ echo 'reconfigure = True' > ~/pyosdmon/control

Writing plugins

TO DO

Tips

If you don't want windows to be over the monitors (e.g., when you maximize them), you can use a window without windowmanager decorations as pyosdmon background. For example, you can use a xterm with a geometry similar to the pyosdmon panel's.

Bugs

Probably a lot.

To do

Known issues

Licence

Pyosdmon is GPL.

Download

You can download pyosdmon from http://www.inf.ufrgs.br/~mario/download/pyosdmon/pyosdmon-0.2.tar.bz2

Author

Mario Domenech Goulart -- moc.liamg@traluog.oiram


[Sumário] [Atividades] [Utilitários e inutilitários] [Documentos] [Fotos] [Humor] [A arte da gambiarra] [Curriculum Vitae] [Bookmarks] [Sobre esta homepage]

Mario Domenech Goulart <moc.liamg@traluog.oiram>

web-scheme logo