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. - 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 Screenshots
----------- -----------

View file

@ -12,5 +12,5 @@
return { return {
layout = require("lain.layout"), layout = require("lain.layout"),
util = require("lain.util"), 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 local setmetatable = setmetatable
-- ALSA volume -- ALSA volume
-- lain.widgets.alsa -- lain.widget.alsa
local function worker(args) local function worker(args)
local alsa = { widget = wibox.widget.textbox() } local alsa = { widget = wibox.widget.textbox() }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -3,7 +3,7 @@
tpbat.lua tpbat.lua
Battery status widget for ThinkPad laptops that use SMAPI 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 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") local smapi = require("smapi")
-- ThinkPad SMAPI-enabled battery info widget -- ThinkPad SMAPI-enabled battery info widget
-- lain.widgets.contrib.tpbat -- lain.widget.contrib.tpbat
local tpbat = {} local tpbat = {}
function tpbat.hide() function tpbat.hide()

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

2
wiki

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