PROCMETERRC(5) | File Formats Manual | PROCMETERRC(5) |
procmetetrc - The procmeterrc configuration file for procmeter3, procmeter3-xaw, gprocmeter3, procmeter3-gtk1, procmeter3-gtk2, procmeter3-gtk3, procmeter3-log and procmeter3-lcd programs.
This file contains the run-time options for the procmeter3, procmeter3-xaw, gprocmeter3, procmeter3-gtk1, procmeter3-gtk2, procmeter3-gtk3, procmeter3-log and procmeter3-lcd programs. These include the outputs that are displayed, the colours and fonts that are used (for X window outputs), the LCDproc server (for the procmeter-lcd version) and other program options.
The resources for ProcMeter version 3.x are stored in the .procmeterrc file instead of using X resources. This gives more flexibility and allows for much simpler customisation.
When the procmeter3, procmeter3-xaw, gprocmeter3, procmeter3-gtk1, procmeter3-gtk2, procmeter3-gtk3, procmeter3-log or procmeter3-lcd programs start the .procmeterrc file is searched for in the current directory, the current users home directory or the system default installation directory (named procmeterrc). The file is used from the first one of these locations that matches.
The format of the .procmeterrc file is a number of sections with the section names marked in '[]'. As well as the fixed sections (described below) there is a section for each module that is named using the name that the module reports itself to be. There are then further sections for each of the possible outputs of each module. The names of the sections and parameters are not case sensitive although the values that they are given may be. Lines beginning with the characters ';' or '#' are comments and continuation using the '\' character at the end of a line is allowed.
Below is listed the resource values and the sections of the .procmeterrc file that they can exist in.
This section contains the information about the ProcMeter modules that are available. This applies to all versions of the program.
This section controls how the ProcMeter window should look when the program is started.
This section contains the general program display resources. Not all of the options apply to all of the versions of the program. Specific versions that the options apply to are specified below.
This section contains parameters that are only used by the procmeter3-lcd version of the program.
The name of the section is the name of the ProcMeter module (see the help, procmeter3 -h), for example: ProcMeter
These can contain any of the resource values which will then apply to all outputs of this module. There are also extra options that can be applied to the module and as defaults for the all of the outputs of that module.
The name of the section is the name of the ProcMeter output (see the help, procmeter3 -h), for example: ProcMeter.Version
The output sections can contain any of the resource or module options (except ´options') which will then apply only to the specified output. There are also options that can only be applied to individual outputs.
Below is an example .procmeterrc file, it is a much reduced version of the system default procmeterrc file.
[startup]
# ProcMeter version, clock, CPU graph, load text
order=ProcMeter.Version Date_Time.Time_HM \
Statistics.CPU-g Processes.Load-t
[resources]
# The outputs, black on white
foreground = black
background = white
# A large-medium size text font.
text-font = 8x13
text-font-pango = Sans 8
# Solid graphs with at least 5 grid lines in grey.
graph-solid = yes
grid-min = 5
grid-foreground = grey50
# Black on white output labels, small font, below the data.
label-font = 5x7
label-font-pango = Sans 5
label-foreground = black
label-position = bottom
# Black on white menu items in a small-medium size font.
menu-foreground = black
menu-background = white
menu-font = 7x13
[ProcMeter.Version]
# A smaller font than normal with no label.
text-font = 6x10
text-font-gtk3 = Sans 6
label-position = none
[Statistics]
[Statistics.CPU]
# The minimum number of grid lines, they are 20% each.
grid-min = 5
[Processes]
run = XTerm(top)
[Network]
# To pick up extra devices not automatically recognised.
#options=ppp0 slip0
./.procmeterrc
~/.procmeterrc
/usr/local/lib/X11/ProcMeter3/procmeterrc or /usr/lib/X11/ProcMeter3/procmeterrc
procmeter3(1), procmeter3-xaw(1), gprocmeter3(1), procmeter3-gtk1(1), procmeter3-gtk2(1), procmeter3-gtk3(1), procmeter3-log(1), procmeter3-lcd(1), procmeter3_modules(1).
Andrew M. Bishop (c) 1998-2011
December 30, 2011 |