From: Luke Bonham Date: Mon, 4 Sep 2017 10:43:00 +0000 (+0200) Subject: removed whitespaced signatures; wiki updated X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/1b12fd2319e1cd02706fd3a7ec0f0203ca2782d2?hp=--cc removed whitespaced signatures; wiki updated --- 1b12fd2319e1cd02706fd3a7ec0f0203ca2782d2 diff --git a/helpers.lua b/helpers.lua index 4e5ce1f..7fa8564 100644 --- a/helpers.lua +++ b/helpers.lua @@ -1,11 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - ---]] + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + +--]] local easy_async = require("awful.spawn").easy_async local timer = require("gears.timer") diff --git a/init.lua b/init.lua index 46ab825..46c7659 100644 --- a/init.lua +++ b/init.lua @@ -1,12 +1,11 @@ - --[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Lain + Layouts, widgets and utilities for Awesome WM + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] return { diff --git a/layout/cascade.lua b/layout/cascade.lua index 204ce40..f7dffb9 100644 --- a/layout/cascade.lua +++ b/layout/cascade.lua @@ -1,11 +1,10 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2014, projektile - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2014, projektile + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local floor = math.floor diff --git a/layout/centerwork.lua b/layout/centerwork.lua index eafab78..aff2771 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -1,13 +1,12 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2016, Henrik Antonsson - * (c) 2015, Joerg Jaspert - * (c) 2014, projektile - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2016, Henrik Antonsson + * (c) 2015, Joerg Jaspert + * (c) 2014, projektile + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local floor = math.floor diff --git a/layout/init.lua b/layout/init.lua index d79679a..b311f45 100644 --- a/layout/init.lua +++ b/layout/init.lua @@ -1,15 +1,14 @@ - --[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Layouts section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Lain + Layouts, widgets and utilities for Awesome WM + + Layouts section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local wrequire = require("lain.helpers").wrequire diff --git a/layout/termfair.lua b/layout/termfair.lua index 33b7ffc..60b3c7d 100644 --- a/layout/termfair.lua +++ b/layout/termfair.lua @@ -1,12 +1,11 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2014, projektile - * (c) 2013, Luke Bonham - * (c) 2010, Nicolas Estibals - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2014, projektile + * (c) 2013, Luke Bonham + * (c) 2010, Nicolas Estibals + * (c) 2010-2012, Peter Hofmann + --]] local math = { ceil = math.ceil, diff --git a/util/init.lua b/util/init.lua index 3f6dd0f..c43a9ed 100644 --- a/util/init.lua +++ b/util/init.lua @@ -1,15 +1,14 @@ - --[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Utilities section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Lain + Layouts, widgets and utilities for Awesome WM + + Utilities section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local awful = require("awful") diff --git a/util/markup.lua b/util/markup.lua index 0d3b17a..0eb9bfa 100644 --- a/util/markup.lua +++ b/util/markup.lua @@ -1,11 +1,10 @@ - --[[ - - Licensed under MIT License - * (c) 2013, Luke Bonham - * (c) 2009, Uli Schlachter - * (c) 2009, Majic - + + Licensed under MIT License + * (c) 2013, Luke Bonham + * (c) 2009, Uli Schlachter + * (c) 2009, Majic + --]] local string = { format = string.format } diff --git a/util/quake.lua b/util/quake.lua index bf78fce..c98f28d 100644 --- a/util/quake.lua +++ b/util/quake.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2016, Luke Bonham - * (c) 2015, unknown - + + Licensed under GNU General Public License v2 + * (c) 2016, Luke Bonham + * (c) 2015, unknown + --]] local awful = require("awful") diff --git a/util/separators.lua b/util/separators.lua index abf57c4..c86af92 100644 --- a/util/separators.lua +++ b/util/separators.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2015, Luke Bonham - * (c) 2015, plotnikovanton - + + Licensed under GNU General Public License v2 + * (c) 2015, Luke Bonham + * (c) 2015, plotnikovanton + --]] local wibox = require("wibox") diff --git a/widget/alsa.lua b/widget/alsa.lua index 36ccc71..29e3a05 100644 --- a/widget/alsa.lua +++ b/widget/alsa.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Adrian C. + --]] local helpers = require("lain.helpers") diff --git a/widget/alsabar.lua b/widget/alsabar.lua index 81fbe29..750933a 100644 --- a/widget/alsabar.lua +++ b/widget/alsabar.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + --]] local helpers = require("lain.helpers") @@ -107,7 +106,7 @@ local function factory(args) function alsabar.notify() alsabar.update(function() local preset = alsabar.notification_preset - + preset.title = string.format("%s - %s%%", alsabar.channel, alsabar._current_level) if alsabar._playback == "off" then diff --git a/widget/bat.lua b/widget/bat.lua index e901842..8e04569 100644 --- a/widget/bat.lua +++ b/widget/bat.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local first_line = require("lain.helpers").first_line diff --git a/widget/calendar.lua b/widget/calendar.lua index d289ebb..2dda890 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") diff --git a/widget/contrib/init.lua b/widget/contrib/init.lua index d7f130e..ccc1046 100644 --- a/widget/contrib/init.lua +++ b/widget/contrib/init.lua @@ -1,14 +1,13 @@ - --[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Users contributed widgets section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Lain + Layouts, widgets and utilities for Awesome WM + + Users contributed widgets section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local wrequire = require("lain.helpers").wrequire diff --git a/widget/contrib/kbdlayout.lua b/widget/contrib/kbdlayout.lua index 5964bd7..5a503ab 100644 --- a/widget/contrib/kbdlayout.lua +++ b/widget/contrib/kbdlayout.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2015, Dario Gjorgjevski - + + Licensed under GNU General Public License v2 + * (c) 2015, Dario Gjorgjevski + --]] local helpers = require("lain.helpers") diff --git a/widget/contrib/moc.lua b/widget/contrib/moc.lua index 83d8aaf..027cec3 100644 --- a/widget/contrib/moc.lua +++ b/widget/contrib/moc.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2014, anticlockwise - + + Licensed under GNU General Public License v2 + * (c) 2014, anticlockwise + --]] local helpers = require("lain.helpers") diff --git a/widget/contrib/redshift.lua b/widget/contrib/redshift.lua index 0babb3a..7b54611 100644 --- a/widget/contrib/redshift.lua +++ b/widget/contrib/redshift.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2014, blueluke - + + Licensed under GNU General Public License v2 + * (c) 2014, blueluke + --]] local async = require("lain.helpers").async diff --git a/widget/contrib/task.lua b/widget/contrib/task.lua index 302642e..7de1967 100644 --- a/widget/contrib/task.lua +++ b/widget/contrib/task.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Jan Xie - + + Licensed under GNU General Public License v2 + * (c) 2013, Jan Xie + --]] local helpers = require("lain.helpers") diff --git a/widget/contrib/tpbat/init.lua b/widget/contrib/tpbat/init.lua index 49cc01a..d926e8e 100644 --- a/widget/contrib/tpbat/init.lua +++ b/widget/contrib/tpbat/init.lua @@ -1,17 +1,16 @@ - --[[ - - tpbat.lua - Battery status widget for ThinkPad laptops that use SMAPI - lain.widget.contrib.tpbat - - More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi - - Licensed under GNU General Public License v2 - * (c) 2013, Conor Heine - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + tpbat.lua + Battery status widget for ThinkPad laptops that use SMAPI + lain.widget.contrib.tpbat + + More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi + + Licensed under GNU General Public License v2 + * (c) 2013, Conor Heine + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local debug = { getinfo = debug.getinfo } diff --git a/widget/contrib/tpbat/smapi.lua b/widget/contrib/tpbat/smapi.lua index 22964e3..a8867e4 100644 --- a/widget/contrib/tpbat/smapi.lua +++ b/widget/contrib/tpbat/smapi.lua @@ -1,12 +1,11 @@ - --[[ - - smapi.lua - Interface with thinkpad battery information - - Licensed under GNU General Public License v2 - * (c) 2013, Conor Heine - + + smapi.lua + Interface with thinkpad battery information + + Licensed under GNU General Public License v2 + * (c) 2013, Conor Heine + --]] local first_line = require("lain.helpers").first_line diff --git a/widget/cpu.lua b/widget/cpu.lua index 9a5a964..b6ecb9c 100644 --- a/widget/cpu.lua +++ b/widget/cpu.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local helpers = require("lain.helpers") diff --git a/widget/fs.lua b/widget/fs.lua index 480c2c8..09e2ef5 100644 --- a/widget/fs.lua +++ b/widget/fs.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") diff --git a/widget/imap.lua b/widget/imap.lua index 84a1cd0..02561e6 100644 --- a/widget/imap.lua +++ b/widget/imap.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") @@ -60,8 +59,6 @@ local function factory(args) helpers.async(curl, function(f) _, mailcount = string.gsub(f, "%d+", "") - _ = nil - widget = imap.widget settings() @@ -71,7 +68,7 @@ local function factory(args) else nt = mail .. " has " .. mailcount .. " new messages" end - naughty.notify({ preset = mail_notification_preset, text = nt }) + naughty.notify { preset = mail_notification_preset, text = nt } end helpers.set_map(mail, mailcount) diff --git a/widget/init.lua b/widget/init.lua index f77f872..e3315d4 100644 --- a/widget/init.lua +++ b/widget/init.lua @@ -1,15 +1,14 @@ - --[[ - - Lain - Layouts, widgets and utilities for Awesome WM - - Widgets section - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Lain + Layouts, widgets and utilities for Awesome WM + + Widgets section + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local wrequire = require("lain.helpers").wrequire diff --git a/widget/mem.lua b/widget/mem.lua index 50fff3b..fa2c364 100644 --- a/widget/mem.lua +++ b/widget/mem.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local helpers = require("lain.helpers") diff --git a/widget/mpd.lua b/widget/mpd.lua index 389cac9..38c49dd 100644 --- a/widget/mpd.lua +++ b/widget/mpd.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010, Adrian C. + --]] local helpers = require("lain.helpers") diff --git a/widget/net.lua b/widget/net.lua index f42ec25..a72fc3d 100644 --- a/widget/net.lua +++ b/widget/net.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local helpers = require("lain.helpers") diff --git a/widget/pulseaudio.lua b/widget/pulseaudio.lua index ed37cb5..a1071bc 100644 --- a/widget/pulseaudio.lua +++ b/widget/pulseaudio.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2016, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2016, Luke Bonham + --]] local helpers = require("lain.helpers") @@ -22,7 +21,7 @@ local function factory(args) local timeout = args.timeout or 5 local settings = args.settings or function() end local scallback = args.scallback - + pulseaudio.device = "N/A" pulseaudio.devicetype = args.devicetype or "sink" pulseaudio.cmd = args.cmd or "pacmd list-" .. pulseaudio.devicetype .. "s | sed -n -e '0,/*/d' -e '/base volume/d' -e '/volume:/p' -e '/muted:/p' -e '/device\\.string/p'" diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index 83bfe5e..12f2565 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + --]] local helpers = require("lain.helpers") @@ -118,7 +117,7 @@ local function factory(args) function pulsebar.notify() pulsebar.update(function() local preset = pulsebar.notification_preset - + preset.title = string.format("Sink %s - %s%%", pulsebar.sink, pulsebar._current_level) if pulsebar._mute == "yes" then diff --git a/widget/sysload.lua b/widget/sysload.lua index d358687..98c0ff7 100644 --- a/widget/sysload.lua +++ b/widget/sysload.lua @@ -1,10 +1,9 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010-2012, Peter Hofmann - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2010-2012, Peter Hofmann + --]] local helpers = require("lain.helpers") diff --git a/widget/temp.lua b/widget/temp.lua index efe2ab9..cc9f056 100644 --- a/widget/temp.lua +++ b/widget/temp.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") diff --git a/widget/weather.lua b/widget/weather.lua index b2ccc19..c7563d5 100644 --- a/widget/weather.lua +++ b/widget/weather.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2015, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2015, Luke Bonham + --]] local helpers = require("lain.helpers") diff --git a/wiki b/wiki index b6fa85f..232d3b6 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit b6fa85f1a5b3030bc08583afa7db5987e6fa5e89 +Subproject commit 232d3b634de9c0d35ad84a009d01f42de84d5e5a