bottom/docs
Rareș Constantin f8db3403af
other: Dynamic battery widget (#975)
* Added dynamic battery widget

For bottom to know that there are no batteries on the system,
I added the battery::Manager to the options.rs file because
here is the first moment bottom verifies battery configuration
by reading the config file, which may or may not contain the
battery field, but for a better UX, it doesn't matter what bottom
finds in the config file now, if it doesn't retrieve battery data,
it just ignores the battery widget all together.
If needed, it can be adjusted so that if the config file contains
the battery field, it will still show the widget.

* CFG guarding for BATTERY module

I guarded the options.rs in two places for battery module that can be missing in the feature list.

Co-authored-by: RaresCon <RaresCon>
Co-authored-by: NitrogenDev <44950964+NitrogenDev@users.noreply.github.com>
2023-01-15 12:06:42 -05:00
..
content other: Dynamic battery widget (#975) 2023-01-15 12:06:42 -05:00
.gitignore docs: adjust dev doc file structure, add build and deploy docs (#804) 2022-09-12 04:14:19 -04:00
mkdocs.yml docs: make stable docs the default (#958) 2023-01-05 21:08:17 -05:00
requirements.txt docs: update docs lib versions as of 2022-10-29 (#857) 2022-10-29 04:21:05 -04:00