README
This commit is contained in:
parent
c41c2736bf
commit
91b7e74ccf
43
README.md
43
README.md
@ -57,6 +57,8 @@ Shows volume of ALSA mixer. You can also use this for inputs, btw.
|
|||||||
Requires pyalsaaudio
|
Requires pyalsaaudio
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — {volume} is the current volume, {muted} is one of `muted` or `unmuted`. {card} is the sound card used; {mixer} the mixer. (default: `♪: {volume}`)
|
* `format` — {volume} is the current volume, {muted} is one of `muted` or `unmuted`. {card} is the sound card used; {mixer} the mixer. (default: `♪: {volume}`)
|
||||||
* `mixer` — ALSA mixer (default: `Master`)
|
* `mixer` — ALSA mixer (default: `Master`)
|
||||||
* `mixer_id` — ALSA mixer id (default: `0`)
|
* `mixer_id` — ALSA mixer id (default: `0`)
|
||||||
@ -74,13 +76,10 @@ Requires pyalsaaudio
|
|||||||
|
|
||||||
Screen backlight info
|
Screen backlight info
|
||||||
|
|
||||||
Available formatters:
|
|
||||||
* brightness
|
|
||||||
* max_brightness
|
|
||||||
* percentage
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — format string (default: `{brightness}/{max_brightness}`)
|
* `format` — format string, formatters: brightness, max_brightness, percentage (default: `{brightness}/{max_brightness}`)
|
||||||
* `backlight` — backlight, see `/sys/class/backlight/` (default: `acpi_video0`)
|
* `backlight` — backlight, see `/sys/class/backlight/` (default: `acpi_video0`)
|
||||||
* `color` — (default: `#FFFFFF`)
|
* `color` — (default: `#FFFFFF`)
|
||||||
|
|
||||||
@ -103,6 +102,10 @@ Available formatters for format and alert_format_\*:
|
|||||||
* battery_ident
|
* battery_ident
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `battery_ident` — (default: `BAT0`)
|
* `battery_ident` — (default: `BAT0`)
|
||||||
* `format` — (default: `{status} {remaining_hm}`)
|
* `format` — (default: `{status} {remaining_hm}`)
|
||||||
* `alert` — Display a libnotify-notification on low battery (default: `False`)
|
* `alert` — Display a libnotify-notification on low battery (default: `False`)
|
||||||
@ -120,6 +123,8 @@ Available formatters for format and alert_format_\*:
|
|||||||
This class shows a clock
|
This class shows a clock
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — stftime format string (default: `None`)
|
* `format` — stftime format string (default: `None`)
|
||||||
|
|
||||||
|
|
||||||
@ -133,6 +138,8 @@ These values can also be expressed in percentages with the percentage_used, perc
|
|||||||
and percentage_avail formats.
|
and percentage_avail formats.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — (default: `{free}/{avail}`)
|
* `format` — (default: `{free}/{avail}`)
|
||||||
* `path` — (required)
|
* `path` — (required)
|
||||||
* `divisor` — divide all byte values by this value, commonly 1024**3 (gigabyte) (default: `1073741824`)
|
* `divisor` — divide all byte values by this value, commonly 1024**3 (gigabyte) (default: `1073741824`)
|
||||||
@ -158,6 +165,8 @@ transforms is a optional dict of callables taking a single argument (a dictionar
|
|||||||
of all components). The return value is bound to the key.
|
of all components). The return value is bound to the key.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — (required)
|
* `format` — (required)
|
||||||
* `components` — (required)
|
* `components` — (required)
|
||||||
* `transforms` — (default: `{}`)
|
* `transforms` — (default: `{}`)
|
||||||
@ -173,6 +182,8 @@ of all components). The return value is bound to the key.
|
|||||||
Shows system load
|
Shows system load
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — format string used for output. {avg1}, {avg5} and {avg15} are the load average of the last one, five and fifteen minutes, respectively. {tasks} is the number of tasks (i.e. 1/285, which indiciates that one out of 285 total tasks is runnable). (default: `{avg1} {avg5}`)
|
* `format` — format string used for output. {avg1}, {avg5} and {avg15} are the load average of the last one, five and fifteen minutes, respectively. {tasks} is the number of tasks (i.e. 1/285, which indiciates that one out of 285 total tasks is runnable). (default: `{avg1} {avg5}`)
|
||||||
|
|
||||||
|
|
||||||
@ -185,6 +196,8 @@ Generic mail checker
|
|||||||
The `backends` setting determines the backends to use. Currently available are:
|
The `backends` setting determines the backends to use. Currently available are:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `backends` — List of backends (instances of i3pystatus.mail.xxx)
|
* `backends` — List of backends (instances of i3pystatus.mail.xxx)
|
||||||
* `color` — (default: `#ffffff`)
|
* `color` — (default: `#ffffff`)
|
||||||
* `color_unread` — (default: `#ff0000`)
|
* `color_unread` — (default: `#ff0000`)
|
||||||
@ -202,6 +215,8 @@ The `backends` setting determines the backends to use. Currently available are:
|
|||||||
> Checks for mail on a IMAP server
|
> Checks for mail on a IMAP server
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
>
|
||||||
|
>
|
||||||
> * `host` — (required)
|
> * `host` — (required)
|
||||||
> * `port` — (default: `993`)
|
> * `port` — (default: `993`)
|
||||||
> * `username` — (required)
|
> * `username` — (required)
|
||||||
@ -218,6 +233,8 @@ The `backends` setting determines the backends to use. Currently available are:
|
|||||||
> and "unread"
|
> and "unread"
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
>
|
||||||
|
>
|
||||||
> * `db_path` — (required)
|
> * `db_path` — (required)
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
@ -232,6 +249,8 @@ The `backends` setting determines the backends to use. Currently available are:
|
|||||||
> * python-dbus
|
> * python-dbus
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
>
|
||||||
|
>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
@ -244,6 +263,8 @@ This class returns i3status parsable output of the number of
|
|||||||
unread posts in any bookmark in the mods.de forums.
|
unread posts in any bookmark in the mods.de forums.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — Use {unread} as the formatter for number of unread posts (default: `{unread} new posts in bookmarks`)
|
* `format` — Use {unread} as the formatter for number of unread posts (default: `{unread} new posts in bookmarks`)
|
||||||
* `offset` — subtract number of posts before output (default: `0`)
|
* `offset` — subtract number of posts before output (default: `0`)
|
||||||
* `color` — (default: `#7181fe`)
|
* `color` — (default: `#7181fe`)
|
||||||
@ -273,6 +294,8 @@ Available formatters:
|
|||||||
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
Not available addresses (i.e. no IPv6 connectivity) are replaced with empty strings.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
||||||
* `format_up` — (default: `{interface}: {v4}`)
|
* `format_up` — (default: `{interface}: {v4}`)
|
||||||
* `color_up` — (default: `#00FF00`)
|
* `color_up` — (default: `#00FF00`)
|
||||||
@ -286,6 +309,8 @@ Not available addresses (i.e. no IPv6 connectivity) are replaced with empty stri
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `instance` — Tracker instance
|
* `instance` — Tracker instance
|
||||||
* `format` — (default: `{name}:{progress}`)
|
* `format` — (default: `{name}:{progress}`)
|
||||||
* `name`
|
* `name`
|
||||||
@ -298,6 +323,8 @@ Not available addresses (i.e. no IPv6 connectivity) are replaced with empty stri
|
|||||||
Simple regex file watcher
|
Simple regex file watcher
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — format string used for output (default: `{0}`)
|
* `format` — format string used for output (default: `{0}`)
|
||||||
* `regex` — (required)
|
* `regex` — (required)
|
||||||
* `file` — file to search for regex matches
|
* `file` — file to search for regex matches
|
||||||
@ -317,6 +344,8 @@ such as a VPN client or your DHCP client is running.
|
|||||||
Available formatters are {pid} and {name}.
|
Available formatters are {pid} and {name}.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format_up` — (default: `{name}`)
|
* `format_up` — (default: `{name}`)
|
||||||
* `format_down` — (default: `{name}`)
|
* `format_down` — (default: `{name}`)
|
||||||
* `color_up` — (default: `#00FF00`)
|
* `color_up` — (default: `#00FF00`)
|
||||||
@ -334,6 +363,8 @@ Shows CPU temperature of Intel processors
|
|||||||
AMD is currently not supported as they can only report a relative temperature, which is pretty useless
|
AMD is currently not supported as they can only report a relative temperature, which is pretty useless
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `format` — format string used for output. {temp} is the temperature in degrees celsius, {critical} and {high} are the trip point temps. (default: `{temp} °C`)
|
* `format` — format string used for output. {temp} is the temperature in degrees celsius, {critical} and {high} are the trip point temps. (default: `{temp} °C`)
|
||||||
* `color` — (default: `#FFFFFF`)
|
* `color` — (default: `#FFFFFF`)
|
||||||
* `color_critical` — (default: `#FF0000`)
|
* `color_critical` — (default: `#FF0000`)
|
||||||
@ -355,6 +386,8 @@ the same, except for these additional formatters:
|
|||||||
* {quality} Link quality in percent
|
* {quality} Link quality in percent
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
* `interface` — Interface to obtain information for, i.e. eth0 (default: `eth0`)
|
||||||
* `format_up` — (default: `{interface}: {v4}`)
|
* `format_up` — (default: `{interface}: {v4}`)
|
||||||
* `color_up` — (default: `#00FF00`)
|
* `color_up` — (default: `#00FF00`)
|
||||||
|
@ -3,15 +3,10 @@ from i3pystatus.file import File
|
|||||||
class Backlight(File):
|
class Backlight(File):
|
||||||
"""
|
"""
|
||||||
Screen backlight info
|
Screen backlight info
|
||||||
|
|
||||||
Available formatters:
|
|
||||||
* brightness
|
|
||||||
* max_brightness
|
|
||||||
* percentage
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
settings = (
|
settings = (
|
||||||
("format", "format string"),
|
("format", "format string, formatters: brightness, max_brightness, percentage"),
|
||||||
("backlight", "backlight, see `/sys/class/backlight/`"),
|
("backlight", "backlight, see `/sys/class/backlight/`"),
|
||||||
"color",
|
"color",
|
||||||
)
|
)
|
||||||
|
@ -17,6 +17,8 @@ MODULE_FORMAT = """
|
|||||||
|
|
||||||
{doc}
|
{doc}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{settings}
|
{settings}
|
||||||
|
|
||||||
{endstring}\n"""
|
{endstring}\n"""
|
||||||
|
Loading…
Reference in New Issue
Block a user