#36 Genmon - display command output

5.6
closed-accepted
nobody
5
2009-07-03
2008-06-18
Helge
No

This plugin was previously available from the fbpanel-devel mailing list, but the file is now missing.
I have merely rediscovered the code on the net and generated a patch file for fbpanel 4.12. The code was originally submitted by "catoblepa", who still holds all the credit.

It would be great if it could be included in the next release of fbpanel, so many distributions like Arch Linux can gain this important functionality (and not just Ubuntu/others).

Original description by "catoblepa":
------------------------------------

It just display the output of a program/script into the panel.

# genmon Monitor - display the output of a program/script into the panel
# Options:
# Command = program/script to provide the text to display on the panel
# CharLength = max length (in characters) of the string
# PollingTime = in seconds, default is 1 second
# TextSize = xx-small, x-small, small, medium, large, x-large, xx-large
# TextColor = an RGB color specification such as #00FF00 or a color
# name such as black, blue or red

Plugin {
type = genmon
config {
Command = echo MemFree: $(grep "MemFree" /proc/meminfo|cut -b 13-30)
CharLength = 20
PollingTime = 5
TextSize = medium
TextColor = balck
}
}

Bye.

--
____ _ _ _
/ ___|__ _| |_ ___ | |__ | | ___ _ __ __ _
| | / _` | __/ _ \| '_ \| |/ _ \ '_ \/ _` | Davide Truffa
| |__| (_| | || (_) | |_) | | __/ |_) |(_| | http://www.catoblepa.org
\____\__,_|\__\___/|_.__/|_|\___| .__/\__,_| -----------------
|_|

Discussion

  • Helge
    Helge
    2008-06-18

    genmon plugin and Makefile patch for fbpanel 4.12

     
  • accepted
    actual config is following

    plugin {
    type = genmon
    config {
    command = date +%R:%S
    maxtextlength = 30
    pollingtime = 3
    textsize = medium
    textcolor = red
    }
    }

     
    • labels: --> new functionality
    • milestone: --> 5.6
    • status: open --> closed-accepted