[doc] update docstrings as per PR #683

This commit is contained in:
tobi-wan-kenobi 2020-07-18 08:23:28 +02:00
parent 72966ee37d
commit 7c8ddc9c87
15 changed files with 42 additions and 4 deletions

View file

@ -1,5 +1,8 @@
"""get volume level or control it """get volume level or control it
Requires the following executable:
* amixer
Parameters: Parameters:
* amixer.device: Device to use (default is Master,0) * amixer.device: Device to use (default is Master,0)
* amixer.percent_change: How much to change volume by when scrolling on the module (default is 4%) * amixer.percent_change: How much to change volume by when scrolling on the module (default is 4%)

View file

@ -1,4 +1,4 @@
"""Displays bluetooth status (Bluez). Left mouse click launches manager app, """Displays bluetooth status (Bluez). Left mouse click launches manager app `blueman-manager`,
right click toggles bluetooth. Needs dbus-send to toggle bluetooth state. right click toggles bluetooth. Needs dbus-send to toggle bluetooth state.
Parameters: Parameters:

View file

@ -1,4 +1,4 @@
"""Displays bluetooth status. Left mouse click launches manager app, """Displays bluetooth status. Left mouse click launches manager app `blueman-manager`,
right click toggles bluetooth. Needs dbus-send to toggle bluetooth state and right click toggles bluetooth. Needs dbus-send to toggle bluetooth state and
python-dbus to count the number of connections python-dbus to count the number of connections

View file

@ -2,6 +2,11 @@
"""Displays the brightness of a display """Displays the brightness of a display
The following executables can be used if `use_acpi` is not enabled:
* brightnessctl
* light
* xbacklight
Parameters: Parameters:
* brightness.step: The amount of increase/decrease on scroll in % (defaults to 2) * brightness.step: The amount of increase/decrease on scroll in % (defaults to 2)
* brightness.device_path: The device path (defaults to /sys/class/backlight/intel_backlight), can contain wildcards (in this case, the first matching path will be used); This is only used when brightness.use_acpi is set to true * brightness.device_path: The device path (defaults to /sys/class/backlight/intel_backlight), can contain wildcards (in this case, the first matching path will be used); This is only used when brightness.use_acpi is set to true

View file

@ -2,6 +2,10 @@
"""Displays the current date and time with timezone options. """Displays the current date and time with timezone options.
Requires the following python packages:
* tzlocal
* pytz
Parameters: Parameters:
* datetimetz.format : strftime()-compatible formatting string * datetimetz.format : strftime()-compatible formatting string
* datetimetz.timezone : IANA timezone name * datetimetz.timezone : IANA timezone name

View file

@ -5,6 +5,8 @@ Displays the unread GitHub notifications count for a GitHub user using the follo
* https://developer.github.com/v3/activity/notifications/#notification-reasons * https://developer.github.com/v3/activity/notifications/#notification-reasons
Uses `xdg-open` or `x-www-browser` to open web-pages.
Requires the following library: Requires the following library:
* requests * requests

View file

@ -2,6 +2,9 @@
"""Displays the indicator status, for numlock, scrolllock and capslock """Displays the indicator status, for numlock, scrolllock and capslock
Requires the following executable:
* xset
Parameters: Parameters:
* indicator.include: Comma-separated list of interface prefixes to include (defaults to 'numlock,capslock') * indicator.include: Comma-separated list of interface prefixes to include (defaults to 'numlock,capslock')
* indicator.signalstype: If you want the signali type color to be 'critical' or 'warning' (defaults to 'warning') * indicator.signalstype: If you want the signali type color to be 'critical' or 'warning' (defaults to 'warning')

View file

@ -1,9 +1,12 @@
# pylint: disable=C0111,R0903 # pylint: disable=C0111,R0903
"""Displays the Octorpint status and the printer's bed/tools temperature in the status bar. """Displays the Octorrint status and the printer's bed/tools temperature in the status bar.
Left click opens a popup which shows the bed & tools temperatures and additionally a livestream of the webcam (if enabled). Left click opens a popup which shows the bed & tools temperatures and additionally a livestream of the webcam (if enabled).
Prerequisites:
* tk python library (usually python-tk or python3-tk, depending on your distribution)
Parameters: Parameters:
* octoprint.address : Octoprint address (e.q: http://192.168.1.3) * octoprint.address : Octoprint address (e.q: http://192.168.1.3)
* octoprint.apitoken : Octorpint API Token (can be obtained from the Octoprint Webinterface) * octoprint.apitoken : Octorpint API Token (can be obtained from the Octoprint Webinterface)

View file

@ -20,7 +20,8 @@ Parameters:
* prime.nvidiastring: String to use when nvidia is selected (defaults to 'intel') * prime.nvidiastring: String to use when nvidia is selected (defaults to 'intel')
* prime.intelstring: String to use when intel is selected (defaults to 'intel') * prime.intelstring: String to use when intel is selected (defaults to 'intel')
Requires the following executable: Requires the following executables:
* sudo
* prime-select * prime-select
contributed by `jeffeb3 <https://github.com/jeffeb3>`_ - many thanks! contributed by `jeffeb3 <https://github.com/jeffeb3>`_ - many thanks!

View file

@ -5,6 +5,10 @@
"""Displays HDD smart status of different drives or all drives """Displays HDD smart status of different drives or all drives
Requires the following executables:
* sudo
* smartctl
Parameters: Parameters:
* smartstatus.display: how to display (defaults to 'combined', other choices: 'seperate' or 'singles') * smartstatus.display: how to display (defaults to 'combined', other choices: 'seperate' or 'singles')
* smartstatus.drives: in the case of singles which drives to display, separated comma list value, multiple accepted (defaults to 'sda', example:'sda,sdc') * smartstatus.drives: in the case of singles which drives to display, separated comma list value, multiple accepted (defaults to 'sda', example:'sda,sdc')

View file

@ -5,6 +5,7 @@
Requires the following python packages: Requires the following python packages:
* requests * requests
* suntime * suntime
* python-dateutil
Parameters: Parameters:
* cpu.lat : Latitude of your location * cpu.lat : Latitude of your location

View file

@ -2,6 +2,9 @@
"""Toggle twmn notifications. """Toggle twmn notifications.
Requires the following executable:
* systemctl
contributed by `Pseudonick47 <https://github.com/Pseudonick47>`_ - many thanks! contributed by `Pseudonick47 <https://github.com/Pseudonick47>`_ - many thanks!
""" """

View file

@ -1,5 +1,8 @@
"""Displays info about zpools present on the system """Displays info about zpools present on the system
Requires the following executable:
* sudo (if `zpool.sudo` is explicitly set to `true`)
Parameters: Parameters:
* zpool.list: Comma-separated list of zpools to display info for. If empty, info for all zpools * zpool.list: Comma-separated list of zpools to display info for. If empty, info for all zpools
is displayed. (Default: '') is displayed. (Default: '')

View file

@ -5,6 +5,9 @@
Requires the following python module: Requires the following python module:
* netifaces * netifaces
Requires the following executable:
* iw
Parameters: Parameters:
* nic.exclude: Comma-separated list of interface prefixes to exclude (defaults to 'lo,virbr,docker,vboxnet,veth,br') * nic.exclude: Comma-separated list of interface prefixes to exclude (defaults to 'lo,virbr,docker,vboxnet,veth,br')
* nic.include: Comma-separated list of interfaces to include * nic.include: Comma-separated list of interfaces to include

View file

@ -4,6 +4,9 @@
Many thanks to [@bbernhard](https://github.com/bbernhard) for the idea! Many thanks to [@bbernhard](https://github.com/bbernhard) for the idea!
Requires the following executable:
* pass (aka password-store)
Parameters: Parameters:
* vault.duration: Duration until password is cleared from clipboard (defaults to 30) * vault.duration: Duration until password is cleared from clipboard (defaults to 30)
* vault.location: Location of the password store (defaults to ~/.password-store) * vault.location: Location of the password store (defaults to ~/.password-store)