From 3d14931cb707490a53d106e7b6ffc35312620be1 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sat, 23 May 2020 16:55:24 +0200 Subject: [PATCH] [docs] add new module --- bumblebee_status/core/config.py | 2 +- docs/modules.rst | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/core/config.py b/bumblebee_status/core/config.py index f779a14..47fbbe6 100644 --- a/bumblebee_status/core/config.py +++ b/bumblebee_status/core/config.py @@ -94,7 +94,7 @@ class print_usage(argparse.Action): continue if self._format == "rst": if os.path.exists( - os.path.join(basepath, "screenshots", "{}.png".format(m)) + os.path.join(basepath, "..", "screenshots", "{}.png".format(m)) ): doc = "{}\n\n.. image:: ../screenshots/{}.png".format(doc, m) diff --git a/docs/modules.rst b/docs/modules.rst index 421ee31..df78637 100644 --- a/docs/modules.rst +++ b/docs/modules.rst @@ -10,6 +10,9 @@ cpu Displays CPU utilization across all CPUs. +Requirements: + * the psutil Python module for the first three items from the list above + Parameters: * cpu.warning : Warning threshold in % of CPU usage (defaults to 70%) * cpu.critical: Critical threshold in % of CPU usage (defaults to 80%) @@ -297,6 +300,23 @@ Requires the following packages: contributed by `qba10 `_ - many thanks! +arandr +~~~~~~ + +Enables handy interaction with arandr for display management. Left-clicking +will execute arandr for interactive display management. Right-clicking will +bring up a context- and state-sensitive menu that will allow you to switch to a +saved screen layout as well as toggle on/off individual connected displays. + +Parameters: + * No configuration parameters + +Requires the following executable: + * arandr + * xrandr + +contributed by `zerorust `_ - many thanks! + arch-update ~~~~~~~~~~~