]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

widget module loads optimization
authorluke bonham <dada@archlinux.info>
Fri, 8 Aug 2014 12:25:21 +0000 (14:25 +0200)
committerluke bonham <dada@archlinux.info>
Fri, 8 Aug 2014 12:25:21 +0000 (14:25 +0200)
helpers.lua
widgets/abase.lua
widgets/base.lua
widgets/borderbox.lua
widgets/calendar.lua
widgets/fs.lua
widgets/imap.lua
widgets/maildir.lua
widgets/net.lua
widgets/temp.lua
widgets/yawn/init.lua

index 863bb87b905e7641313bd5db96a07ec9e3288060..1dfb09b6b40aca21296227d79ce23f65c5658844 100644 (file)
@@ -2,7 +2,7 @@
 --[[
                                                   
      Licensed under GNU General Public License v2 
-      * (c) 2013,      Luke Bonham                
+      * (c) 2013, Luke Bonham                     
                                                   
 --]]
 
index 20cc955f62e38edcbc0c36872fdf2fa2e02787ad..075d615e81d4fe099a69e08500d64e0906f5d237 100644 (file)
@@ -10,7 +10,6 @@ local newtimer     = require("lain.helpers").newtimer
 local async        = require("lain.asyncshell")
 local wibox        = require("wibox")
 
-local io           = io
 local setmetatable = setmetatable
 
 -- Basic template for custom widgets 
index 6b808b7fc066d27b8fc607ab213deb2b22bee7a8..39b0863e4dfbf8ba1b01ea751d9520d1b2977330 100644 (file)
@@ -9,10 +9,10 @@
 local newtimer     = require("lain.helpers").newtimer
 local wibox        = require("wibox")
 
-local io           = io
+local io           = { popen = io.popen }
 local setmetatable = setmetatable
 
--- Basic template for custom widgets 
+-- Basic template for custom widgets
 -- lain.widgets.base
 
 local function worker(args)
index c251ea8d8fdaf989c8edc9a65fc3d71edddaccf7..cce8517e1caa9802ff8399dae47cd52349445b60 100644 (file)
@@ -8,6 +8,7 @@
 --]]
 
 local wibox        = require("awful.wibox")
+
 local setmetatable = setmetatable
 
 -- Creates a thin wibox at a position relative to another wibox
index c690e3f4893cdd436755986f4a2d6e5a045b506b..d07a5b4fff8c26068541e63206561a22b5770885 100644 (file)
@@ -12,7 +12,7 @@ local awful        = require("awful")
 local beautiful    = require("beautiful")
 local naughty      = require("naughty")
 
-local io           = io
+local io           = { popen = io.popen }
 local os           = { date = os.date }
 local tonumber     = tonumber
 
index 8127c287c39dedb2173af0c1cf53272bf3a45c30..f78cfe0d66f0d633ff87ff606421e8cf32632658 100644 (file)
@@ -14,7 +14,7 @@ local beautiful    = require("beautiful")
 local wibox        = require("wibox")
 local naughty      = require("naughty")
 
-local io           = io
+local io           = { popen  = io.popen }
 local pairs        = pairs
 local string       = { match  = string.match,
                        format = string.format }
index 1dca87cddfc856c8350243e1fbbabcc741b50233..65c425e6459b69fbc865d3fd4490572f95095666 100644 (file)
@@ -57,7 +57,7 @@ local function worker(args)
         curl = string.format("%s --url imaps://%s:%s/INBOX -u %s:%s %s -k",
                head_command, server, port, mail, password, request)
 
-        async.request(curl, function(f) 
+        async.request(curl, function(f)
             ws = f:read("*a")
             f:close()
 
index bd792210530346d92ae92de247ee6310ab817bff..246341f98962b5d352a408ccb954738b2bf35665 100644 (file)
@@ -13,7 +13,7 @@ local wibox           = require("wibox")
 
 local util            = require("lain.util")
 
-local io              = io
+local io              = { popen  = io.popen }
 local os              = { getenv = os.getenv }
 local pairs           = pairs
 local string          = { len    = string.len,
index 7851d5a710da02ff8980523f6c3e97ef57db508b..957500069de4cdb572dcd74b6372e400d890fd0a 100644 (file)
@@ -13,7 +13,7 @@ local notify_fg    = require("beautiful").fg_focus
 local naughty      = require("naughty")
 local wibox        = require("wibox")
 
-local io           = io
+local io           = { popen  = io.popen }
 local tostring     = tostring
 local string       = { format = string.format,
                        gsub   = string.gsub }
index 4ae1c04ed574a4ffd64f7566155cd8cf22015f0a..5994f59a36f659aa274dba2f274ba8c619e2eb9e 100644 (file)
@@ -10,7 +10,7 @@ local newtimer     = require("lain.helpers").newtimer
 
 local wibox        = require("wibox")
 
-local io           = io
+local io           = { open = io.open }
 local tonumber     = tonumber
 
 local setmetatable = setmetatable
index 033254e2cd3d6caf21854196d5a230ee6bcadd3d..aa58ed1986fd4f2076fc2bb686f9dde149710d5e 100644 (file)
@@ -13,7 +13,8 @@ local naughty      = require("naughty")
 local wibox        = require("wibox")
 
 local debug        = { getinfo = debug.getinfo }
-local io           = io
+local io           = { lines   = io.lines,
+                       open    = io.open }
 local os           = { date    = os.date,
                        getenv  = os.getenv }
 local string       = { find    = string.find,