mirror of https://github.com/lcpz/lain.git
removed whitespaced signatures; wiki updated
This commit is contained in:
parent
1ebfa854f9
commit
1b12fd2319
10
helpers.lua
10
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")
|
||||
|
|
15
init.lua
15
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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
|
||||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2010, Adrian C. <anrxc@sysphere.org>
|
||||
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2010, Adrian C. <anrxc@sysphere.org>
|
||||
|
||||
--]]
|
||||
|
||||
local helpers = require("lain.helpers")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
|
||||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2014, anticlockwise <http://github.com/anticlockwise>
|
||||
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2014, anticlockwise <http://github.com/anticlockwise>
|
||||
|
||||
--]]
|
||||
|
||||
local helpers = require("lain.helpers")
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
|
||||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2014, blueluke <http://github.com/blueluke>
|
||||
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2014, blueluke <http://github.com/blueluke>
|
||||
|
||||
--]]
|
||||
|
||||
local async = require("lain.helpers").async
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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 <b>" .. mailcount .. "</b> 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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
|
||||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2010, Adrian C. <anrxc@sysphere.org>
|
||||
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2010, Adrian C. <anrxc@sysphere.org>
|
||||
|
||||
--]]
|
||||
|
||||
local helpers = require("lain.helpers")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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'"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit b6fa85f1a5b3030bc08583afa7db5987e6fa5e89
|
||||
Subproject commit 232d3b634de9c0d35ad84a009d01f42de84d5e5a
|
Loading…
Reference in New Issue