]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Created brigthness (markdown)
authorLuke Bonham <copycat-killer@users.noreply.github.com>
Mon, 23 Dec 2013 17:10:31 +0000 (09:10 -0800)
committerLuke Bonham <copycat-killer@users.noreply.github.com>
Mon, 23 Dec 2013 17:10:31 +0000 (09:10 -0800)
brigthness.md [new file with mode: 0644]

diff --git a/brigthness.md b/brigthness.md
new file mode 100644 (file)
index 0000000..b0dfe76
--- /dev/null
@@ -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