From 346db7c907c29bbe01c238c70ef5e2a16060c44c Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 23 Dec 2013 09:14:39 -0800 Subject: [PATCH 02/16] Updated brightness (markdown) --- brightness.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brightness.md b/brightness.md index 590359a..5a3a9db 100644 --- a/brightness.md +++ b/brightness.md @@ -1,15 +1,15 @@ [<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) -Shows brightness level in a textbox. +Shows the current level of screen brightness in a textbox. - volumewidget = lain.widgets.contrib.brightness() + mybrightness = lain.widgets.contrib.brightness() ### input table Variable | Meaning | Type | Default --- | --- | --- | --- `timeout` | Refresh timeout seconds | int | 5 -`backlight` | Backlight Video | string | "acpi_video0" +`backlight` | Backlight video | string | "acpi_video0" `settings` | User settings | function | empty function `settings` can use the following variables: @@ -37,4 +37,4 @@ You can control the widget with key bindings like these: function () awful.util.spawn("xbacklight -dec 1") brightnesswidget.update() - end), + end), \ No newline at end of file -- 2.39.5 From 507d34eec1cf963036d5f30ce8c960cc2b82bdf3 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 23 Dec 2013 09:15:04 -0800 Subject: [PATCH 03/16] Updated Widgets (markdown) --- Widgets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widgets.md b/Widgets.md index 12178e2..5917aac 100644 --- a/Widgets.md +++ b/Widgets.md @@ -50,4 +50,4 @@ Users contributed - [task](https://github.com/copycat-killer/lain/wiki/task) - [tpbat](https://github.com/copycat-killer/lain/wiki/tpbat) -- [brightness](https://github.com/copycat-killer/lain/wiki/brigthness) \ No newline at end of file +- [brightness](https://github.com/copycat-killer/lain/wiki/brightness) \ No newline at end of file -- 2.39.5 From e379b9649b88e4e88a95731565e65d92c86b2824 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 23 Dec 2013 09:17:57 -0800 Subject: [PATCH 04/16] Destroyed brigthness (markdown) --- brigthness.md | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 brigthness.md diff --git a/brigthness.md b/brigthness.md deleted file mode 100644 index b0dfe76..0000000 --- a/brigthness.md +++ /dev/null @@ -1,24 +0,0 @@ -[<- 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 From 9f6ff057f4b99704d9396a66c4f2896954541d2e Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 24 Dec 2013 03:28:49 -0800 Subject: [PATCH 05/16] Updated brightness (markdown) --- brightness.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brightness.md b/brightness.md index 5a3a9db..4cd4f8e 100644 --- a/brightness.md +++ b/brightness.md @@ -2,7 +2,7 @@ Shows the current level of screen brightness in a textbox. - mybrightness = lain.widgets.contrib.brightness() + brightnesswidget = lain.widgets.contrib.brightness() ### input table @@ -27,7 +27,7 @@ Variable | Meaning | Type You can control the widget with key bindings like these: - -- Volume control + -- Brightness control awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("xbacklight -inc 1") -- 2.39.5 From 0f5d6dc4a543871c3ab7e3c36f6988b3a3ceffa4 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 24 Dec 2013 03:33:15 -0800 Subject: [PATCH 06/16] Updated tpbat (markdown) --- tpbat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpbat.md b/tpbat.md index 3d0b0e8..e54f469 100644 --- a/tpbat.md +++ b/tpbat.md @@ -6,4 +6,4 @@ Includes hover notification with more details. tpbatwidget = lain.widgets.contrib.tpbat() -Configuration is identical to [main bat widget's](https://github.com/copycat-killer/lain/wiki/bat). \ No newline at end of file +Configuration is identical to [standard bat widget's](https://github.com/copycat-killer/lain/wiki/bat). \ No newline at end of file -- 2.39.5 From 89807acfccfceb936b18e6e9ebf669bec7e01a16 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 24 Dec 2013 03:33:29 -0800 Subject: [PATCH 07/16] Updated tpbat (markdown) --- tpbat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpbat.md b/tpbat.md index e54f469..5a7ba0c 100644 --- a/tpbat.md +++ b/tpbat.md @@ -6,4 +6,4 @@ Includes hover notification with more details. tpbatwidget = lain.widgets.contrib.tpbat() -Configuration is identical to [standard bat widget's](https://github.com/copycat-killer/lain/wiki/bat). \ No newline at end of file +Configuration is identical to [standard battery widget's](https://github.com/copycat-killer/lain/wiki/bat). \ No newline at end of file -- 2.39.5 From c8e07d2ec34cfb12907e4ccb5f29908aa8c98f5a Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 30 Dec 2013 06:57:45 -0800 Subject: [PATCH 08/16] Updated Layouts (markdown) --- Layouts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Layouts.md b/Layouts.md index 1ddca95..045c2c9 100644 --- a/Layouts.md +++ b/Layouts.md @@ -101,7 +101,7 @@ cascade Cascade all windows of a tag. -You can control the offsets by setting those two variables: +You can control the offsets by setting these two variables: lain.layout.cascade.cascade_offset_x = 64 lain.layout.cascade.cascade_offset_y = 16 -- 2.39.5 From 07a230fb1654cc6abc1bd1ea8b36d8dcb3c1ad62 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Thu, 2 Jan 2014 03:16:09 -0800 Subject: [PATCH 09/16] Updated calendar (markdown) --- calendar.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar.md b/calendar.md index fa4e563..b06c453 100644 --- a/calendar.md +++ b/calendar.md @@ -26,4 +26,6 @@ You can call the notification with a key binding like this: awful.key({ altkey }, "c", function () lain.widgets.calendar:show(7) end), -where ``altkey = "Mod1"`` and ``show`` argument is an optional integer, meaning timeout seconds. \ No newline at end of file +where ``altkey = "Mod1"`` and ``show`` argument is an optional integer, meaning timeout seconds. + +**Note that** this widget exploits ``cal`` to do the alignment, in order to avoid more dozens of code lines, but this requires that your system font is monospaced. \ No newline at end of file -- 2.39.5 From 780ce12033c8aa90c5060280cfbdfd6fddc7584f Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 13 Jan 2014 04:01:31 -0800 Subject: [PATCH 10/16] Updated bat (markdown) --- bat.md | 1 + 1 file changed, 1 insertion(+) diff --git a/bat.md b/bat.md index 50c14e8..82e7a8b 100644 --- a/bat.md +++ b/bat.md @@ -13,6 +13,7 @@ Variable | Meaning | Type | Default --- | --- | --- | --- `timeout` | Refresh timeout seconds | int | 30 `battery` | Identifier of the battery | string | "BAT0" +`notify` | Enable notifications | boolean | true `settings` | User settings | function | empty function `settings` can use the `bat_now` table, which contains the following strings: -- 2.39.5 From ac4b4d5d555c94015700c55ff294bf8e7d1645ef Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 14 Jan 2014 00:53:12 -0800 Subject: [PATCH 11/16] Updated bat (markdown) --- bat.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bat.md b/bat.md index 82e7a8b..c450dbe 100644 --- a/bat.md +++ b/bat.md @@ -13,7 +13,7 @@ Variable | Meaning | Type | Default --- | --- | --- | --- `timeout` | Refresh timeout seconds | int | 30 `battery` | Identifier of the battery | string | "BAT0" -`notify` | Enable notifications | boolean | true +`notify` | Enable notifications | string | "on" `settings` | User settings | function | empty function `settings` can use the `bat_now` table, which contains the following strings: @@ -23,6 +23,8 @@ Variable | Meaning | Type | Default - `time`; - `watt`. +To disable warning notifications, set `notify` to `off`. + ### output A textbox. \ No newline at end of file -- 2.39.5 From b81da3a243ca8be6c778041e2f91cacb31470122 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 14 Jan 2014 00:53:56 -0800 Subject: [PATCH 12/16] Updated bat (markdown) --- bat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bat.md b/bat.md index c450dbe..6bbb21e 100644 --- a/bat.md +++ b/bat.md @@ -23,7 +23,7 @@ Variable | Meaning | Type | Default - `time`; - `watt`. -To disable warning notifications, set `notify` to `off`. +To disable warning notifications, set `notify` to `"off"`. ### output -- 2.39.5 From 41d28b93ebbeb7e51584032e88c748426ea6cd82 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 14 Jan 2014 01:05:55 -0800 Subject: [PATCH 13/16] Updated alsabar (markdown) --- alsabar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsabar.md b/alsabar.md index fa5f209..6138f2c 100644 --- a/alsabar.md +++ b/alsabar.md @@ -16,7 +16,7 @@ Variable | Meaning | Type | Default `settings` | User settings | function | empty function `width` | Bar width | int | 63 `height` | Bar height | int | 1 -`ticks` | Set bar ticks on | boolean | true +`ticks` | Set bar ticks on | boolean | false `ticks_size` | Ticks size | int | 7 `vertical` | Set the bar vertical | boolean | false `channel` | Mixer channel | string | "Master" -- 2.39.5 From dd10cac1306530f46f0e8506156e1ef21b456fae Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 20 Jan 2014 09:52:35 -0800 Subject: [PATCH 14/16] Updated imap (markdown) --- imap.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/imap.md b/imap.md index ba92d0f..b0d5375 100644 --- a/imap.md +++ b/imap.md @@ -31,16 +31,26 @@ Variable | Meaning | Type | Default Let's focus better on `is_plain`. -You can just set your password like this: +The reason why it's false by default is to discourage the habit of storing passwords in plain files. - args.is_plain = false - args.password = "mypassword" +You can set your password in plain like this: + + myimapcheck = lain.widgets.imap({ + is_plain = true, + password = "myplainpassword", + [...] + }) and you'll have the same security provided by `~/.netrc`. **Or** you can use a keyring, like [python keyring](https://pypi.python.org/pypi/keyring): - args.password = "keyring get password" + myimapcheck = lain.widgets.imap({ + is_plain = true, + password = "myplainpassword", + server = "mail.autistici.org", + mail = "dada@anche.no", + }) When `is_plain == false`, it *executes* `password` before using it, so you can also use whatever password fetching solution you want. -- 2.39.5 From a11f76cf00b430d3f7eec710879847cb654fe17f Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 20 Jan 2014 09:53:32 -0800 Subject: [PATCH 15/16] Updated imap (markdown) --- imap.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imap.md b/imap.md index b0d5375..7952c81 100644 --- a/imap.md +++ b/imap.md @@ -46,10 +46,8 @@ and you'll have the same security provided by `~/.netrc`. **Or** you can use a keyring, like [python keyring](https://pypi.python.org/pypi/keyring): myimapcheck = lain.widgets.imap({ - is_plain = true, - password = "myplainpassword", - server = "mail.autistici.org", - mail = "dada@anche.no", + password = "keyring get mymail", + [...] }) When `is_plain == false`, it *executes* `password` before using it, so you can also use whatever password fetching solution you want. -- 2.39.5