[main] Initial support for "-l" parameter
List all available modules and query their description, notes and usage.
This commit is contained in:
parent
b2e9515861
commit
598f3e70e9
2 changed files with 31 additions and 3 deletions
|
@ -1,6 +1,15 @@
|
|||
import datetime
|
||||
import bumblebee.module
|
||||
|
||||
def usage():
|
||||
return "battery::<battery ID, defaults to BAT0>"
|
||||
|
||||
def notes():
|
||||
return "Reads /sys/class/power_supply/<ID>/[capacity|status]"
|
||||
|
||||
def description():
|
||||
return "Displays battery status, percentage and whether it's charging or discharging"
|
||||
|
||||
class Module(bumblebee.module.Module):
|
||||
def __init__(self, args):
|
||||
super(Module, self).__init__(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue