mirror of https://github.com/lcpz/lain.git
widget module loads optimization
This commit is contained in:
parent
0d5c25ffd4
commit
f37a31878e
|
@ -2,7 +2,7 @@
|
|||
--[[
|
||||
|
||||
Licensed under GNU General Public License v2
|
||||
* (c) 2013, Luke Bonham
|
||||
* (c) 2013, Luke Bonham
|
||||
|
||||
--]]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
--]]
|
||||
|
||||
local wibox = require("awful.wibox")
|
||||
|
||||
local setmetatable = setmetatable
|
||||
|
||||
-- Creates a thin wibox at a position relative to another wibox
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue