removed whitespaced signatures; wiki updated

This commit is contained in:
Luke Bonham 2017-09-04 12:43:00 +02:00
parent 1ebfa854f9
commit 1b12fd2319
34 changed files with 196 additions and 232 deletions

View File

@ -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 easy_async = require("awful.spawn").easy_async
local timer = require("gears.timer") local timer = require("gears.timer")

View File

@ -1,12 +1,11 @@
--[[ --[[
Lain Lain
Layouts, widgets and utilities for Awesome WM Layouts, widgets and utilities for Awesome WM
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
return { return {

View File

@ -1,11 +1,10 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2014, projektile * (c) 2014, projektile
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local floor = math.floor local floor = math.floor

View File

@ -1,13 +1,12 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2016, Henrik Antonsson * (c) 2016, Henrik Antonsson
* (c) 2015, Joerg Jaspert * (c) 2015, Joerg Jaspert
* (c) 2014, projektile * (c) 2014, projektile
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local floor = math.floor local floor = math.floor

View File

@ -1,15 +1,14 @@
--[[ --[[
Lain Lain
Layouts, widgets and utilities for Awesome WM Layouts, widgets and utilities for Awesome WM
Layouts section Layouts section
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local wrequire = require("lain.helpers").wrequire local wrequire = require("lain.helpers").wrequire

View File

@ -1,12 +1,11 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2014, projektile * (c) 2014, projektile
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010, Nicolas Estibals * (c) 2010, Nicolas Estibals
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local math = { ceil = math.ceil, local math = { ceil = math.ceil,

View File

@ -1,15 +1,14 @@
--[[ --[[
Lain Lain
Layouts, widgets and utilities for Awesome WM Layouts, widgets and utilities for Awesome WM
Utilities section Utilities section
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local awful = require("awful") local awful = require("awful")

View File

@ -1,11 +1,10 @@
--[[ --[[
Licensed under MIT License Licensed under MIT License
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2009, Uli Schlachter * (c) 2009, Uli Schlachter
* (c) 2009, Majic * (c) 2009, Majic
--]] --]]
local string = { format = string.format } local string = { format = string.format }

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2016, Luke Bonham * (c) 2016, Luke Bonham
* (c) 2015, unknown * (c) 2015, unknown
--]] --]]
local awful = require("awful") local awful = require("awful")

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2015, Luke Bonham * (c) 2015, Luke Bonham
* (c) 2015, plotnikovanton * (c) 2015, plotnikovanton
--]] --]]
local wibox = require("wibox") local wibox = require("wibox")

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010, Adrian C. <anrxc@sysphere.org> * (c) 2010, Adrian C. <anrxc@sysphere.org>
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2013, Rman * (c) 2013, Rman
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")
@ -107,7 +106,7 @@ local function factory(args)
function alsabar.notify() function alsabar.notify()
alsabar.update(function() alsabar.update(function()
local preset = alsabar.notification_preset local preset = alsabar.notification_preset
preset.title = string.format("%s - %s%%", alsabar.channel, alsabar._current_level) preset.title = string.format("%s - %s%%", alsabar.channel, alsabar._current_level)
if alsabar._playback == "off" then if alsabar._playback == "off" then

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local first_line = require("lain.helpers").first_line local first_line = require("lain.helpers").first_line

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,14 +1,13 @@
--[[ --[[
Lain Lain
Layouts, widgets and utilities for Awesome WM Layouts, widgets and utilities for Awesome WM
Users contributed widgets section Users contributed widgets section
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
local wrequire = require("lain.helpers").wrequire local wrequire = require("lain.helpers").wrequire

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2015, Dario Gjorgjevski * (c) 2015, Dario Gjorgjevski
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2014, anticlockwise <http://github.com/anticlockwise> * (c) 2014, anticlockwise <http://github.com/anticlockwise>
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2014, blueluke <http://github.com/blueluke> * (c) 2014, blueluke <http://github.com/blueluke>
--]] --]]
local async = require("lain.helpers").async local async = require("lain.helpers").async

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Jan Xie * (c) 2013, Jan Xie
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,17 +1,16 @@
--[[ --[[
tpbat.lua tpbat.lua
Battery status widget for ThinkPad laptops that use SMAPI Battery status widget for ThinkPad laptops that use SMAPI
lain.widget.contrib.tpbat lain.widget.contrib.tpbat
More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Conor Heine * (c) 2013, Conor Heine
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local debug = { getinfo = debug.getinfo } local debug = { getinfo = debug.getinfo }

View File

@ -1,12 +1,11 @@
--[[ --[[
smapi.lua smapi.lua
Interface with thinkpad battery information Interface with thinkpad battery information
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Conor Heine * (c) 2013, Conor Heine
--]] --]]
local first_line = require("lain.helpers").first_line local first_line = require("lain.helpers").first_line

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")
@ -60,8 +59,6 @@ local function factory(args)
helpers.async(curl, function(f) helpers.async(curl, function(f)
_, mailcount = string.gsub(f, "%d+", "") _, mailcount = string.gsub(f, "%d+", "")
_ = nil
widget = imap.widget widget = imap.widget
settings() settings()
@ -71,7 +68,7 @@ local function factory(args)
else else
nt = mail .. " has <b>" .. mailcount .. "</b> new messages" nt = mail .. " has <b>" .. mailcount .. "</b> new messages"
end end
naughty.notify({ preset = mail_notification_preset, text = nt }) naughty.notify { preset = mail_notification_preset, text = nt }
end end
helpers.set_map(mail, mailcount) helpers.set_map(mail, mailcount)

View File

@ -1,15 +1,14 @@
--[[ --[[
Lain Lain
Layouts, widgets and utilities for Awesome WM Layouts, widgets and utilities for Awesome WM
Widgets section Widgets section
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local wrequire = require("lain.helpers").wrequire local wrequire = require("lain.helpers").wrequire

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010, Adrian C. <anrxc@sysphere.org> * (c) 2010, Adrian C. <anrxc@sysphere.org>
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2016, Luke Bonham * (c) 2016, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")
@ -22,7 +21,7 @@ local function factory(args)
local timeout = args.timeout or 5 local timeout = args.timeout or 5
local settings = args.settings or function() end local settings = args.settings or function() end
local scallback = args.scallback local scallback = args.scallback
pulseaudio.device = "N/A" pulseaudio.device = "N/A"
pulseaudio.devicetype = args.devicetype or "sink" 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'" 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'"

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2013, Rman * (c) 2013, Rman
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")
@ -118,7 +117,7 @@ local function factory(args)
function pulsebar.notify() function pulsebar.notify()
pulsebar.update(function() pulsebar.update(function()
local preset = pulsebar.notification_preset local preset = pulsebar.notification_preset
preset.title = string.format("Sink %s - %s%%", pulsebar.sink, pulsebar._current_level) preset.title = string.format("Sink %s - %s%%", pulsebar.sink, pulsebar._current_level)
if pulsebar._mute == "yes" then if pulsebar._mute == "yes" then

View File

@ -1,10 +1,9 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann * (c) 2010-2012, Peter Hofmann
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2013, Luke Bonham * (c) 2013, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

View File

@ -1,9 +1,8 @@
--[[ --[[
Licensed under GNU General Public License v2 Licensed under GNU General Public License v2
* (c) 2015, Luke Bonham * (c) 2015, Luke Bonham
--]] --]]
local helpers = require("lain.helpers") local helpers = require("lain.helpers")

2
wiki

@ -1 +1 @@
Subproject commit b6fa85f1a5b3030bc08583afa7db5987e6fa5e89 Subproject commit 232d3b634de9c0d35ad84a009d01f42de84d5e5a