lain.widgets -> lain.widget

This commit is contained in:
copycat-killer 2017-02-08 14:15:48 +01:00
parent c155301459
commit 8d3868d7ce
28 changed files with 29 additions and 29 deletions

View File

@ -37,7 +37,7 @@ Just make sure that:
- You eventually update ``wiki`` submodule with a thorough section.
Contributed widgets have to be put in ``lain/widgets/contrib``.
Contributed widgets have to be put in ``widget/contrib``.
Screenshots
-----------

View File

@ -12,5 +12,5 @@
return {
layout = require("lain.layout"),
util = require("lain.util"),
widgets = require("lain.widgets")
widget = require("lain.widget")
}

View File

@ -15,7 +15,7 @@ local string = { match = string.match,
local setmetatable = setmetatable
-- ALSA volume
-- lain.widgets.alsa
-- lain.widget.alsa
local function worker(args)
local alsa = { widget = wibox.widget.textbox() }

View File

@ -20,7 +20,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- ALSA volume bar
-- lain.widgets.alsabar
-- lain.widget.alsabar
local alsabar = {
colors = {
background = "#000000",

View File

@ -22,7 +22,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- Battery infos
-- lain.widgets.bat
-- lain.widget.bat
local function worker(args)
local bat = { widget = wibox.widget.textbox() }

View File

@ -18,7 +18,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- Calendar notification
-- lain.widgets.calendar
-- lain.widget.calendar
local calendar = { offset = 0 }
function calendar.hide()

View File

@ -14,6 +14,6 @@
local wrequire = require("lain.helpers").wrequire
local setmetatable = setmetatable
local widgets = { _NAME = "lain.widgets.contrib" }
local widgets = { _NAME = "lain.widget.contrib" }
return setmetatable(widgets, { __index = wrequire })

View File

@ -15,7 +15,7 @@ local execute = os.execute
local setmetatable = setmetatable
-- Keyboard layout switcher
-- lain.widgets.contrib.kblayout
-- lain.widget.contrib.kblayout
local kbdlayout = {}
local function worker(args)

View File

@ -18,7 +18,7 @@ local string = { format = string.format,
local setmetatable = setmetatable
-- MOC audio player
-- lain.widgets.contrib.moc
-- lain.widget.contrib.moc
local moc = {}
local function worker(args)

View File

@ -12,7 +12,7 @@ local execute = os.execute
local type = type
-- Redshift
-- lain.widgets.contrib.redshift
-- lain.widget.contrib.redshift
local redshift = { active = false, pid = nil }
function redshift:start()

View File

@ -13,7 +13,7 @@ local naughty = require("naughty")
local string = { format = string.format, gsub = string.gsub }
-- Taskwarrior notification
-- lain.widgets.contrib.task
-- lain.widget.contrib.task
local task = {}
function task.hide()

View File

@ -3,7 +3,7 @@
tpbat.lua
Battery status widget for ThinkPad laptops that use SMAPI
lain.widgets.contrib.tpbat
lain.widget.contrib.tpbat
More on tp_smapi: http://www.thinkwiki.org/wiki/Tp_smapi
@ -27,7 +27,7 @@ package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] ..
local smapi = require("smapi")
-- ThinkPad SMAPI-enabled battery info widget
-- lain.widgets.contrib.tpbat
-- lain.widget.contrib.tpbat
local tpbat = {}
function tpbat.hide()

View File

@ -16,7 +16,7 @@ local tostring = tostring
local setmetatable = setmetatable
-- CPU usage
-- lain.widgets.cpu
-- lain.widget.cpu
local cpu = { core = {} }
local function worker(args)

View File

@ -19,7 +19,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- File system disk space usage
-- lain.widgets.fs
-- lain.widget.fs
local fs = { unit = { ["mb"] = 1024, ["gb"] = 1024^2 } }
function fs.hide()

View File

@ -16,7 +16,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- Mail IMAP check
-- lain.widgets.imap
-- lain.widget.imap
local function worker(args)
local imap = { widget = wibox.widget.textbox() }

View File

@ -15,6 +15,6 @@
local wrequire = require("lain.helpers").wrequire
local setmetatable = setmetatable
local widgets = { _NAME = "lain.widgets" }
local widgets = { _NAME = "lain.widget" }
return setmetatable(widgets, { __index = wrequire })

View File

@ -15,7 +15,7 @@ local floor = math.floor
local setmetatable = setmetatable
-- Memory usage (ignoring caches)
-- lain.widgets.mem
-- lain.widget.mem
local mem = {}
local function worker(args)

View File

@ -20,7 +20,7 @@ local string = { format = string.format,
local setmetatable = setmetatable
-- MPD infos
-- lain.widgets.mpd
-- lain.widget.mpd
local mpd = {}
local function worker(args)

View File

@ -15,7 +15,7 @@ local string = { format = string.format,
local setmetatable = setmetatable
-- Network infos
-- lain.widgets.net
-- lain.widget.net
local function worker(args)
local net = { widget = wibox.widget.textbox() }

View File

@ -15,7 +15,7 @@ local string = { gmatch = string.gmatch,
local setmetatable = setmetatable
-- PulseAudio volume
-- lain.widgets.pulseaudio
-- lain.widget.pulseaudio
local function worker(args)
local pulseaudio = { widget = wibox.widget.textbox() }

View File

@ -21,7 +21,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- Pulseaudio volume bar
-- lain.widgets.pulsebar
-- lain.widget.pulsebar
local pulsebar = {
colors = {
background = "#000000",

View File

@ -14,7 +14,7 @@ local string = { match = string.match }
local setmetatable = setmetatable
-- System load
-- lain.widgets.sysload
-- lain.widget.sysload
local sysload = {}
local function worker(args)

View File

@ -13,7 +13,7 @@ local tonumber = tonumber
local setmetatable = setmetatable
-- coretemp
-- lain.widgets.temp
-- lain.widget.temp
local temp = {}
local function worker(args)

View File

@ -11,7 +11,7 @@ local textbox = require("wibox.widget.textbox")
local setmetatable = setmetatable
-- Template for asynchronous watcher widgets
-- lain.widgets.watch
-- lain.widget.watch
local function worker(args)
local watch = {}

View File

@ -22,7 +22,7 @@ local setmetatable = setmetatable
-- OpenWeatherMap
-- current weather and X-days forecast
-- lain.widgets.weather
-- lain.widget.weather
local function worker(args)
local weather = { widget = wibox.widget.textbox() }

2
wiki

@ -1 +1 @@
Subproject commit 32904a7e2cc20b9aec497aa9a031324fc535b0f9
Subproject commit d3b29e25c4d47a5988948d2f9432d9353c826c2a