madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

removed whitespaced signatures; wiki updated
authorLuke Bonham <dada@archlinux.info>
Mon, 4 Sep 2017 10:43:00 +0000 (12:43 +0200)
committerLuke Bonham <dada@archlinux.info>
Mon, 4 Sep 2017 10:43:00 +0000 (12:43 +0200)
34 files changed:
helpers.lua
init.lua
layout/cascade.lua
layout/centerwork.lua
layout/init.lua
layout/termfair.lua
util/init.lua
util/markup.lua
util/quake.lua
util/separators.lua
widget/alsa.lua
widget/alsabar.lua
widget/bat.lua
widget/calendar.lua
widget/contrib/init.lua
widget/contrib/kbdlayout.lua
widget/contrib/moc.lua
widget/contrib/redshift.lua
widget/contrib/task.lua
widget/contrib/tpbat/init.lua
widget/contrib/tpbat/smapi.lua
widget/cpu.lua
widget/fs.lua
widget/imap.lua
widget/init.lua
widget/mem.lua
widget/mpd.lua
widget/net.lua
widget/pulseaudio.lua
widget/pulsebar.lua
widget/sysload.lua
widget/temp.lua
widget/weather.lua
wiki

index 4e5ce1facc505c5a78617fa40181120b4f1f5826..7fa85643551c3db0a4de72603243f2aab1ac035a 100644 (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 timer      = require("gears.timer")
index 46ab825e370fd50a52dcf70a0481a56c35b0689f..46c7659cd65a550e03cb3cf7efbb5c48bea972f4 100644 (file)
--- 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 {
index 204ce4017bc211f532c750ae5f2e6c3979590486..f7dffb927514e61c181a9941974ed38911a568d3 100644 (file)
@@ -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
index eafab78ce5c5054f1834e616b97e555305f6294c..aff27710dc8d31a208fad53200499de762431f9e 100644 (file)
@@ -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
index d79679a5f17620b736284afb077d10d38bc57ad7..b311f4525ff09e55ebeb249a033f303be29c90f1 100644 (file)
@@ -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
index 33b7ffc7489634761565caab3248c336b494a975..60b3c7df1f8ad56b4871adc93caa9bf63dd1bfe2 100644 (file)
@@ -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,
index 3f6dd0f3fa623695fb7b7232fcf849a98a0a945a..c43a9ed731be95ede8d14c7725a9a7685777841b 100644 (file)
@@ -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")
index 0d3b17a1b1da7b8655a3ceda569871c34e7e8e5e..0eb9bfa4f84233fcaca41c94127f5237527d5595 100644 (file)
@@ -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 }
index bf78fcee4b5008de9365ab9149e177c74c256894..c98f28dba717ada8e617c0fe28d58fde692002f0 100644 (file)
@@ -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")
index abf57c4b9c0e75892127147dc2df135e5e7761f7..c86af9293f373a22faceb4d89f9cdceaffaa72b7 100644 (file)
@@ -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")
index 36ccc719b3b38ac18d02b546b084bf39baf677f8..29e3a052b89dee3a82d8dee5b11423123907bd91 100644 (file)
@@ -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")
index 81fbe2955c3894e4ed8d501ba9d32e5a8676424b..750933a1eeed49e4c490b049eb67c4fbce940782 100644 (file)
@@ -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
index e901842f27fc0492d5fe75952b217d895177d91e..8e04569128b6b6131de342f1f805fa14f4ae7fb6 100644 (file)
@@ -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
index d289ebb9b126dab295731b7bc5fb1fc7cf8dfbb6..2dda8908afdec255ffc54d14b01e688e0a958ba2 100644 (file)
@@ -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")
index d7f130ebfe1a970dfcee8b2434876e7d28f11acf..ccc1046b0ef39121aee949c4683923d33c4f1865 100644 (file)
@@ -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
index 5964bd77362f9ad3cc310bcc87d0931a4c9cfed9..5a503ab6218f5f8ec520e97ed3725e536af707f9 100644 (file)
@@ -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")
index 83d8aaf86870ef3dda47468fbc3468af992cd487..027cec36cb7032b5971751dd3c0cb08b378f7b83 100644 (file)
@@ -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")
index 0babb3abe5227a1267292c88ab65ae5b5efd4864..7b546116820246bd57af92812ad63fe336c2d56b 100644 (file)
@@ -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
index 302642e974299e7b97403ce2c19bb2b30eeaabc4..7de1967a0d4bf15866d6a3992f4478447ab4a11e 100644 (file)
@@ -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")
index 49cc01acaa86b439e2c7fb695d2b2977255e245f..d926e8e4b1e76981b3f1fd1f789ceb3f7ed5a6bb 100644 (file)
@@ -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 }
index 22964e3a2f5dee956c47006be52ac071f1710dae..a8867e430e40d1aabf3cbcc63abbbebe58ab0aba 100644 (file)
@@ -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
index 9a5a9648f01e679c5cdf7992fd5cb45eb03b3c3e..b6ecb9c1f4fd80cf5811eb102655beb524bb909e 100644 (file)
@@ -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")
index 480c2c854330d8f653cefc9773733308c9586a58..09e2ef5c95ddf54df10fdeca090b2f2cc6b40ef8 100644 (file)
@@ -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")
index 84a1cd0a672b93270cd855f3d22bb0c2266394b3..02561e6342a99703eebe77a0e2421b37bfbceded 100644 (file)
@@ -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)
index f77f872314a01f855adb1e79e3552cab9582b201..e3315d4b54571e5db6dc6bdf1cdce11dda0b99fd 100644 (file)
@@ -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
index 50fff3bb7d62f78cd4bbfd6c5cd84987223d1786..fa2c3649bcde6845614d9978fc926e6eccc0551e 100644 (file)
@@ -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")
index 389cac9b00c077fdc046ead144317fed513863fb..38c49dde8d684cf5c3ed39e9c9f1c2758357d6b9 100644 (file)
@@ -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")
index f42ec25d01a52a0f37f24b495a1993f08fce4753..a72fc3de4addfd85d246c77e1df5057f31c87aae 100644 (file)
@@ -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")
index ed37cb5e96fbd580d70bef55a0b783f3582fdab7..a1071bc1ee470c116f52dd3d6deacb1abf0e2437 100644 (file)
@@ -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'"
index 83bfe5e43407577a2b766a68886f3e7b4601d4ee..12f2565c0b83ccf24f21d2732830bf86b26c9fcc 100644 (file)
@@ -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
index d35868753135b02b9ad58e41de46d98363757c2f..98c0ff791e3b630eadcca90a95ad6e80d742b36d 100644 (file)
@@ -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")
index efe2ab931dd971af9f39b44889b07ed3b7003030..cc9f0566c279729c43cfd49e0e820b1e222919f8 100644 (file)
@@ -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")
index b2ccc192d6df52ddd9c387b7d233ee3b09f226d7..c7563d5ad14a6ee1735f8cca5568737d7a8bd198 100644 (file)
@@ -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 b6fa85f1a5b3030bc08583afa7db5987e6fa5e89..232d3b634de9c0d35ad84a009d01f42de84d5e5a 160000 (submodule)
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit b6fa85f1a5b3030bc08583afa7db5987e6fa5e89
+Subproject commit 232d3b634de9c0d35ad84a009d01f42de84d5e5a