From ba7f3b15ec47e9293628e10565f55fca72dca05f Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 23 Dec 2013 09:10:31 -0800 Subject: [PATCH 1/1] Created brigthness (markdown) --- brigthness.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 brigthness.md diff --git a/brigthness.md b/brigthness.md new file mode 100644 index 0000000..b0dfe76 --- /dev/null +++ b/brigthness.md @@ -0,0 +1,24 @@ +[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) + +Shows the current level of screen brightness. + + mybrightness = lain.widgets.contrib.brightness() + +### input table + +Variable | Meaning | Type | Default +--- | --- | --- | --- +`backlight` | Card managing backlight | `acpi_video0` +`timeout` | Refresh timeout seconds | int | 5 +`settings` | User settings | function | empty function + +`settings` can use the string `brightness_now`, which indicates the current brightness level. + +### output table + +Variable | Meaning | Type +--- | --- | --- +`widget` | The textbox | `wibox.widget.textbox` +`update` | The notification | function + +You can control the widget with key bindings like these: [TODO] \ No newline at end of file -- 2.39.5