This commit is contained in:
enkore 2013-10-03 00:58:21 +02:00
parent 5f50f0ea02
commit 305de3225f
2 changed files with 24 additions and 2 deletions

View File

@ -294,7 +294,7 @@ __Settings:__
* `alert_format_title` — The title of the notification, all formatters can be used (default: `Low battery`) * `alert_format_title` — The title of the notification, all formatters can be used (default: `Low battery`)
* `alert_format_body` — The body text of the notification, all formatters can be used (default: `Battery {battery_ident} has only {percentage:.2f}% ({remaining_hm}) remaining!`) * `alert_format_body` — The body text of the notification, all formatters can be used (default: `Battery {battery_ident} has only {percentage:.2f}% ({remaining_hm}) remaining!`)
* `path` — Override the default-generated path (default: `None`) * `path` — Override the default-generated path (default: `None`)
* `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'CHR': 'CHR', 'DIS': 'DIS', 'FULL': 'FULL'}`) * `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'DIS': 'DIS', 'CHR': 'CHR', 'FULL': 'FULL'}`)
@ -438,6 +438,26 @@ __Settings:__
> >
> >
### mem
Shows memory load
Available formatters:
* {avail_mem}
* {percent_used_mem}
* {used_mem}
* {total_mem}
Requires psutil (from PyPI)
__Settings:__
* `format` — format string used for output. (default: `{avail_mem} MB`)
### modsde ### modsde
@ -480,7 +500,7 @@ __Settings:__
* `host` — (default: `localhost`) * `host` — (default: `localhost`)
* `port` — MPD port (default: `6600`) * `port` — MPD port (default: `6600`)
* `format` — formatp string (default: `{title} {status}`) * `format` — formatp string (default: `{title} {status}`)
* `status` — Dictionary mapping pause, play and stop to output (default: `{'pause': '▷', 'stop': '◾', 'play': '▶'}`) * `status` — Dictionary mapping pause, play and stop to output (default: `{'stop': '◾', 'play': '▶', 'pause': '▷'}`)

View File

@ -12,6 +12,8 @@ class Mem(IntervalModule):
* {percent_used_mem} * {percent_used_mem}
* {used_mem} * {used_mem}
* {total_mem} * {total_mem}
Requires psutil (from PyPI)
""" """
format = "{avail_mem} MB" format = "{avail_mem} MB"