Nicer doc markup
This commit is contained in:
parent
217c473c49
commit
eeeb629e98
@ -9,7 +9,7 @@ class ALSA(IntervalModule):
|
||||
|
||||
Requires pyalsaaudio
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{volume}` — the current volume in percent
|
||||
* `{muted}` — the value of one of the `muted` or `unmuted` settings
|
||||
|
@ -5,7 +5,7 @@ class Backlight(File):
|
||||
"""
|
||||
Screen backlight info
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{brightness}` — current brightness relative to max_brightness
|
||||
* `{max_brightness}` — maximum brightness value
|
||||
|
@ -105,7 +105,7 @@ class BatteryChecker(IntervalModule):
|
||||
This class uses the /sys/class/power_supply/…/uevent interface to check for the
|
||||
battery status
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{remaining}` — remaining time for charging or discharging, uses TimeWrapper formatting, default format is `%E%h:%M`
|
||||
* `{percentage}` — battery percentage relative to the last full value
|
||||
|
@ -15,7 +15,7 @@ class Bitcoin(IntervalModule):
|
||||
Index API <https://bitcoinaverage.com> while transaction data is pulled
|
||||
from blockchain.info <https://blockchain.info/api/blockchain_api>.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {last_price}
|
||||
* {ask_price}
|
||||
|
@ -18,7 +18,7 @@ class CpuUsage(IntervalModule):
|
||||
|
||||
Linux only
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {usage} usage average of all cores
|
||||
* {usage_cpu*} usage of one specific core. replace "*" by core number starting at 0
|
||||
|
@ -13,12 +13,10 @@ class CpuUsageBar(CpuUsage, ColorRangeModule):
|
||||
|
||||
Requires the PyPI package `colour`.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {usage_bar} usage average of all cores
|
||||
* {usage_bar_cpuN} usage of one specific core. replace "N" by core number starting at 0
|
||||
|
||||
|
||||
"""
|
||||
|
||||
format = "{usage_bar}"
|
||||
|
@ -12,7 +12,7 @@ class CpuUsageGraph(CpuUsage, ColorRangeModule):
|
||||
|
||||
Linux only
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {cpu_graph} graph of cpu usage.
|
||||
* {usage} usage average of all cores
|
||||
|
@ -7,7 +7,7 @@ class Mem(IntervalModule):
|
||||
"""
|
||||
Shows memory load
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {avail_mem}
|
||||
* {percent_used_mem}
|
||||
|
@ -8,7 +8,8 @@ class MemBar(IntervalModule, ColorRangeModule):
|
||||
"""
|
||||
Shows memory load as a bar.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {used_mem_bar}
|
||||
|
||||
Requires psutil and colour (from PyPI)
|
||||
|
@ -74,7 +74,7 @@ class Network(IntervalModule):
|
||||
|
||||
Requires the PyPI package `netifaces`.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{interface}` — same as setting
|
||||
* `{name}` — same as setting
|
||||
|
@ -12,7 +12,7 @@ class NetworkGraph(NetworkTraffic, ColorRangeModule):
|
||||
|
||||
Requires the PyPI packages `psutil` and `colour`.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
{kbs} Float representing kb\s
|
||||
{network_graph} Unicode network graph
|
||||
|
@ -8,7 +8,7 @@ class NetworkTraffic(IntervalModule):
|
||||
|
||||
Requires the PyPI packages `psutil`.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{interface}` — the configured network interface
|
||||
* `{bytes_sent}` — bytes sent per second (divided by divisor)
|
||||
|
@ -7,7 +7,7 @@ class PulseAudio(Module):
|
||||
"""
|
||||
Shows volume of default PulseAudio sink (output).
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{volume}` — volume in percent (0...100)
|
||||
* `{db}` — volume in decibels relative to 100 %, i.e. 100 % = 0 dB, 50 % = -18 dB, 0 % = -infinity dB
|
||||
|
@ -12,7 +12,7 @@ class pyLoad(IntervalModule):
|
||||
"""
|
||||
Shows pyLoad status
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* `{captcha}` (see captcha_true and captcha_false, which are the values filled in for this formatter)
|
||||
* `{progress}` (average over all running downloads)
|
||||
|
@ -15,7 +15,7 @@ class Reddit(IntervalModule):
|
||||
submission directly. Depends on the Python Reddit API Wrapper (PRAW)
|
||||
<https://github.com/praw-dev/praw>.
|
||||
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {submission_title}
|
||||
* {submission_author}
|
||||
|
@ -7,7 +7,7 @@ class Weather(IntervalModule):
|
||||
"""
|
||||
This module gets the weather from weather.com using pywapi module
|
||||
First, you need to get the code for the location from the www.weather.com
|
||||
Available formatters:
|
||||
.. rubric:: Available formatters
|
||||
|
||||
* {current_temp}
|
||||
* {current_wind}
|
||||
|
Loading…
Reference in New Issue
Block a user