-
--[[
-
- 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")
-
--[[
-
- 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 {
-
--[[
-
- 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
-
--[[
-
- 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
-
--[[
-
- 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
-
--[[
-
- 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,
-
--[[
-
- 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")
-
--[[
-
- 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 }
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
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
-
--[[
-
- 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
-
--[[
-
- 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")
-
--[[
-
- 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
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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
-
--[[
-
- 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")
-
--[[
-
- 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 }
-
--[[
-
- 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
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
helpers.async(curl, function(f)
_, mailcount = string.gsub(f, "%d+", "")
- _ = nil
-
widget = imap.widget
settings()
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)
-
--[[
-
- 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
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
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'"
-
--[[
-
- 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")
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
-
--[[
-
- 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")
-
--[[
-
- 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")
-
--[[
-
- 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")
-Subproject commit b6fa85f1a5b3030bc08583afa7db5987e6fa5e89
+Subproject commit 232d3b634de9c0d35ad84a009d01f42de84d5e5a