widget module loads optimization

This commit is contained in:
luke bonham 2014-08-08 14:25:21 +02:00
parent 0d5c25ffd4
commit f37a31878e
11 changed files with 12 additions and 11 deletions

View File

@ -10,7 +10,6 @@ local newtimer = require("lain.helpers").newtimer
local async = require("lain.asyncshell") local async = require("lain.asyncshell")
local wibox = require("wibox") local wibox = require("wibox")
local io = io
local setmetatable = setmetatable local setmetatable = setmetatable
-- Basic template for custom widgets -- Basic template for custom widgets

View File

@ -9,7 +9,7 @@
local newtimer = require("lain.helpers").newtimer local newtimer = require("lain.helpers").newtimer
local wibox = require("wibox") local wibox = require("wibox")
local io = io local io = { popen = io.popen }
local setmetatable = setmetatable local setmetatable = setmetatable
-- Basic template for custom widgets -- Basic template for custom widgets

View File

@ -8,6 +8,7 @@
--]] --]]
local wibox = require("awful.wibox") local wibox = require("awful.wibox")
local setmetatable = setmetatable local setmetatable = setmetatable
-- Creates a thin wibox at a position relative to another wibox -- Creates a thin wibox at a position relative to another wibox

View File

@ -12,7 +12,7 @@ local awful = require("awful")
local beautiful = require("beautiful") local beautiful = require("beautiful")
local naughty = require("naughty") local naughty = require("naughty")
local io = io local io = { popen = io.popen }
local os = { date = os.date } local os = { date = os.date }
local tonumber = tonumber local tonumber = tonumber

View File

@ -14,7 +14,7 @@ local beautiful = require("beautiful")
local wibox = require("wibox") local wibox = require("wibox")
local naughty = require("naughty") local naughty = require("naughty")
local io = io local io = { popen = io.popen }
local pairs = pairs local pairs = pairs
local string = { match = string.match, local string = { match = string.match,
format = string.format } format = string.format }

View File

@ -13,7 +13,7 @@ local wibox = require("wibox")
local util = require("lain.util") local util = require("lain.util")
local io = io local io = { popen = io.popen }
local os = { getenv = os.getenv } local os = { getenv = os.getenv }
local pairs = pairs local pairs = pairs
local string = { len = string.len, local string = { len = string.len,

View File

@ -13,7 +13,7 @@ local notify_fg = require("beautiful").fg_focus
local naughty = require("naughty") local naughty = require("naughty")
local wibox = require("wibox") local wibox = require("wibox")
local io = io local io = { popen = io.popen }
local tostring = tostring local tostring = tostring
local string = { format = string.format, local string = { format = string.format,
gsub = string.gsub } gsub = string.gsub }

View File

@ -10,7 +10,7 @@ local newtimer = require("lain.helpers").newtimer
local wibox = require("wibox") local wibox = require("wibox")
local io = io local io = { open = io.open }
local tonumber = tonumber local tonumber = tonumber
local setmetatable = setmetatable local setmetatable = setmetatable

View File

@ -13,7 +13,8 @@ local naughty = require("naughty")
local wibox = require("wibox") local wibox = require("wibox")
local debug = { getinfo = debug.getinfo } local debug = { getinfo = debug.getinfo }
local io = io local io = { lines = io.lines,
open = io.open }
local os = { date = os.date, local os = { date = os.date,
getenv = os.getenv } getenv = os.getenv }
local string = { find = string.find, local string = { find = string.find,