Correct the copyright headers of the rest widget type

This commit is contained in:
Nguyễn Gia Phong 2019-09-14 10:33:40 +07:00
parent f54f1a7d8e
commit bea390a75e
23 changed files with 509 additions and 202 deletions

View File

@ -32,7 +32,7 @@ Fixed:
- [pkg] Use more updated front-ends for Debian/Ubuntu (apt) and Fedora (dnf) - [pkg] Use more updated front-ends for Debian/Ubuntu (apt) and Fedora (dnf)
- [os] Splitted os_all into os_linux and os_bsd (and refactored to async) - [os] Splitted os_all into os_linux and os_bsd (and refactored to async)
- Tweak `.luacheckrc` to suit functional style and soft-limit text width to 80 - Tweak `.luacheckrc` to suit functional style and soft-limit text width to 80
- Update copyright headers for libraries - Update copyright headers for libraries and official widget types
Removed: Removed:

View File

@ -1,22 +1,32 @@
--------------------------------------------------- -- widget type providing the subject of last e-mail in a mbox file
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2018 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
local io = { open = io.open } local io = { open = io.open }
local setmetatable = setmetatable
local string = { gfind = string.gfind }
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Mbox: provides the subject of last e-mail in a mbox file
-- vicious.widgets.mbox -- vicious.widgets.mbox
local mbox_all = {} local mbox_all = {}
-- Initialize variables -- Initialize variables
local subject = "N/A" local subject = "N/A"
@ -24,18 +34,15 @@ local subject = "N/A"
local function worker(format, warg) local function worker(format, warg)
if not warg then return end if not warg then return end
-- mbox could be huge, get a 30kb chunk from EOF local f = io.open(type(warg) == "table" and warg[1] or warg)
if type(warg) ~= "table" then _mbox = warg end
-- * attachment could be much bigger than 30kb
local f = io.open(_mbox or warg[1])
f:seek("end", -30720) f:seek("end", -30720)
-- mbox could be huge, get a 30kb chunk from EOF
-- * attachment could be much bigger than 30kb
local txt = f:read("*all") local txt = f:read("*all")
f:close() f:close()
-- Find all Subject lines -- Find all Subject lines
for i in string.gfind(txt, "Subject: ([^\n]*)") do for i in txt:gmatch"Subject: ([^\n]*)" do subject = i end
subject = i
end
-- Check if we should scroll, or maybe truncate -- Check if we should scroll, or maybe truncate
if type(warg) == "table" then if type(warg) == "table" then
@ -46,8 +53,8 @@ local function worker(format, warg)
end end
end end
return {subject} return { subject }
end end
-- }}} -- }}}
return setmetatable(mbox_all, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(mbox_all, worker)

View File

@ -1,20 +1,30 @@
--------------------------------------------------- -- widget type providing the count of total, old and new messages in mbox files
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local io = { open = io.open } local io = { open = io.open }
local setmetatable = setmetatable local helpers = require"vicious.helpers"
local string = { find = string.find }
-- }}} -- }}}
-- Mboxc: provides the count of total, old and new messages in mbox files
-- vicious.widgets.mboxc -- vicious.widgets.mboxc
local mboxc_all = {} local mboxc_all = {}
-- {{{ Mbox count widget type -- {{{ Mbox count widget type
local function worker(format, warg) local function worker(format, warg)
if not warg then return end if not warg then return end
@ -34,15 +44,15 @@ local function worker(format, warg)
-- Find all messages -- Find all messages
-- * http://www.jwz.org/doc/content-length.html -- * http://www.jwz.org/doc/content-length.html
local _, from = string.find(lines, "^From[%s]") local _, from = lines:find"^From[%s]"
if from ~= nil then count.total = count.total + 1 end if from ~= nil then count.total = count.total + 1 end
-- Read messages have the Status header -- Read messages have the Status header
local _, status = string.find(lines, "^Status:[%s]RO$") local _, status = lines:find"^Status:[%s]RO$"
if status ~= nil then count.old = count.old + 1 end if status ~= nil then count.old = count.old + 1 end
-- Skip the folder internal data -- Skip the folder internal data
local _, int = string.find(lines, "^Subject:[%s].*FOLDER[%s]INTERNAL[%s]DATA") local _, int = lines:find"^Subject:[%s].*FOLDER[%s]INTERNAL[%s]DATA"
if int ~= nil then count.total = count.total - 1 end if int ~= nil then count.total = count.total - 1 end
end end
f:close() f:close()
@ -55,4 +65,4 @@ local function worker(format, warg)
end end
-- }}} -- }}}
return setmetatable(mboxc_all, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(mboxc_all, worker)

View File

@ -1,8 +1,23 @@
--------------------------------------------------- -- widget type providing number of new and unread Maildir messages
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2010 Fredrik Ax
-- * (c) Maildir Biff Widget, Fredrik Ax -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
@ -11,12 +26,9 @@ local helpers = require"vicious.helpers"
local spawn = require"vicious.spawn" local spawn = require"vicious.spawn"
-- }}} -- }}}
-- Mdir: provides the number of new and unread messages in Maildir structures/dirs
-- vicious.widgets.mdir -- vicious.widgets.mdir
local mdir_all = {} local mdir_all = {}
-- {{{ Maildir widget type -- {{{ Maildir widget type
function mdir_all.async(format, warg, callback) function mdir_all.async(format, warg, callback)
if type(warg) ~= "table" then return callback{} end if type(warg) ~= "table" then return callback{} end

View File

@ -1,3 +1,23 @@
-- RAM and swap usage widget type for FreeBSD
-- Copyright (C) 2017-2019 mutlusun <mutlusun@github.com>
-- Copyright (C) 2018 Andreas Geisenhainer <psycorama@datenhalde.de>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local math = { floor = math.floor } local math = { floor = math.floor }

View File

@ -1,22 +1,35 @@
--------------------------------------------------- -- RAM and swap usage widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2009 Lucas de Vries <lucas@glacicle.com>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2018 Jay Kamat <jaygkamat@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local io = { lines = io.lines } local io = { lines = io.lines }
local setmetatable = setmetatable
local math = { floor = math.floor } local math = { floor = math.floor }
local string = { gmatch = string.gmatch } local string = { gmatch = string.gmatch }
local helpers = require"vicious.helpers"
-- }}} -- }}}
-- Mem: provides RAM and Swap usage statistics -- Mem: provides RAM and Swap usage statistics
-- vicious.widgets.mem -- vicious.widgets.mem
local mem_linux = {} local mem_linux = {}
-- {{{ Memory widget type -- {{{ Memory widget type
local function worker(format) local function worker(format)
local _mem = { buf = {}, swp = {} } local _mem = { buf = {}, swp = {} }
@ -50,4 +63,4 @@ local function worker(format)
end end
-- }}} -- }}}
return setmetatable(mem_linux, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(mem_linux, worker)

View File

@ -1,7 +1,25 @@
--------------------------------------------------- -- Music Player Daemon widget type
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017,2019 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2018 Jörg Thalheim <joerg@thalheim.io>
-- Copyright (C) 2018-2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
-- Copyright (C) 2019 Juan Carlos Menonita <JuanKman94@users.noreply.github.com>
-- Copyright (C) 2019 Lorenzo Gaggini <lg@lgaggini.net>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
@ -12,7 +30,6 @@ local helpers = require"vicious.helpers"
local spawn = require"vicious.spawn" local spawn = require"vicious.spawn"
-- }}} -- }}}
-- Mpd: provides Music Player Daemon information -- Mpd: provides Music Player Daemon information
-- vicious.widgets.mpd -- vicious.widgets.mpd
local mpd_all = {} local mpd_all = {}

View File

@ -1,3 +1,22 @@
-- network status and usage widget type for FreeBSD
-- Copyright (C) 2017,2019 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local os = { time = os.time } local os = { time = os.time }

View File

@ -1,24 +1,35 @@
--------------------------------------------------- -- network status and usage widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2009 Lucas de Vries <lucas@glacicle.com>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local os = { time = os.time } local os = { time = os.time }
local io = { lines = io.lines } local io = { lines = io.lines }
local setmetatable = setmetatable
local string = { match = string.match } local string = { match = string.match }
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Net: provides state and usage statistics of all network interfaces -- Net: provides state and usage statistics of all network interfaces
-- vicious.widgets.net -- vicious.widgets.net
local net_linux = {} local net_linux = {}
-- Initialize function tables -- Initialize function tables
local nets = {} local nets = {}
-- Variable definitions -- Variable definitions
@ -77,4 +88,4 @@ local function worker(format)
end end
-- }}} -- }}}
return setmetatable(net_linux, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(net_linux, worker)

View File

@ -1,62 +1,71 @@
--------------------------------------------------- -- widget type providing agenda from Emacs org-mode
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2010 org-awesome, Damien Leone
-- * (c) org-awesome, Damien Leone -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local io = { lines = io.lines } local io = { lines = io.lines }
local setmetatable = setmetatable local os = { time = os.time, date = os.date }
local string = { find = string.find } local helpers = require"vicious.helpers"
local os = {
time = os.time,
date = os.date
}
-- }}} -- }}}
-- Org: provides agenda statistics for Emacs org-mode -- Org: provides agenda statistics for Emacs org-mode
-- vicious.widgets.org -- vicious.widgets.org
local org_all = {} local org_all = {}
-- {{{ OrgMode widget type -- {{{ OrgMode widget type
local function worker(format, warg) local function worker(format, warg)
if not warg then return end if not warg then return end
-- Compute delays -- Compute delays
local today = os.time{ year=os.date("%Y"), month=os.date("%m"), day=os.date("%d") } local today = os.time{ year = os.date("%Y"), month = os.date("%m"),
local soon = today + 24 * 3600 * 3 -- 3 days ahead is close day = os.date("%d") }
local future = today + 24 * 3600 * 7 -- 7 days ahead is maximum local soon = today + 24*3600*3 -- 3 days ahead is close
local future = today + 24*3600*7 -- 7 days ahead is maximum
-- Initialize counters -- Initialize counters
local count = { past = 0, today = 0, soon = 0, future = 0 } local count = { past = 0, today = 0, soon = 0, future = 0 }
-- Get data from agenda files -- Get data from agenda files
for i=1, #warg do for i = 1,#warg do
for line in io.lines(warg[i]) do for line in io.lines(warg[i]) do
local scheduled = string.find(line, "SCHEDULED:") local scheduled = line:find"SCHEDULED:"
local closed = string.find(line, "CLOSED:") local deadline = line:find"DEADLINE:"
local deadline = string.find(line, "DEADLINE:") local closed = line:find"CLOSED:"
local b, _, y, m, d = line:find"(%d%d%d%d)-(%d%d)-(%d%d)"
if (scheduled and not closed) or (deadline and not closed) then if (scheduled or deadline) and not closed and b then
local b, e, y, m, d = string.find(line, "(%d%d%d%d)-(%d%d)-(%d%d)")
if b then
local t = os.time{ year = y, month = m, day = d } local t = os.time{ year = y, month = m, day = d }
if t < today then
if t < today then count.past = count.past + 1 count.past = count.past + 1
elseif t == today then count.today = count.today + 1 elseif t == today then
elseif t <= soon then count.soon = count.soon + 1 count.today = count.today + 1
elseif t <= future then count.future = count.future + 1 elseif t <= soon then
end count.soon = count.soon + 1
elseif t <= future then
count.future = count.future + 1
end end
end end
end end
end end
return {count.past, count.today, count.soon, count.future} return { count.past, count.today, count.soon, count.future }
end end
-- }}} -- }}}
return setmetatable(org_all, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(org_all, worker)

View File

@ -1,7 +1,20 @@
--------------------------------------------------- -- operating system widget type for *BSD
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2019 mutlusun <mutlusun@users.noreply.github.com>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> --
--------------------------------------------------- -- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local los = { getenv = os.getenv } local los = { getenv = os.getenv }
@ -10,12 +23,10 @@ local helpers = require("vicious.helpers")
local spawn = require("vicious.spawn") local spawn = require("vicious.spawn")
-- }}} -- }}}
-- OS: provides operating system information -- OS: provides operating system information
-- vicious.widgets.os -- vicious.widgets.os
local os_bsd = {} local os_bsd = {}
-- {{{ Operating system widget type -- {{{ Operating system widget type
local function parse(stdout, stderr, exitreason, exitcode) local function parse(stdout, stderr, exitreason, exitcode)
local system = { local system = {

View File

@ -1,25 +1,37 @@
--------------------------------------------------- -- operating system widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--------------------------------------------------- -- Copyright (C) 2019 mutlusun <mutlusun@users.noreply.github.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local pairs = pairs local pairs = pairs
local tonumber = tonumber local tonumber = tonumber
local math = { ceil = math.ceil } local math = { ceil = math.ceil }
local los = { getenv = os.getenv } local los = { getenv = os.getenv }
local setmetatable = setmetatable
local string = { gsub = string.gsub } local string = { gsub = string.gsub }
local helpers = require"vicious.helpers" local helpers = require"vicious.helpers"
-- }}} -- }}}
-- OS: provides operating system information -- OS: provides operating system information
-- vicious.widgets.os -- vicious.widgets.os
local os_linux = {} local os_linux = {}
-- {{{ Operating system widget type -- {{{ Operating system widget type
local function worker(format) local function worker(format)
local system = { local system = {
@ -57,5 +69,4 @@ local function worker(format)
end end
-- }}} -- }}}
return setmetatable(os_linux, return helpers.setcall(os_linux, worker)
{ __call = function(_, ...) return worker(...) end })

View File

@ -1,14 +1,30 @@
--------------------------------------------------- -- widget type providing number of pending updates
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 Joerg Thalheim <joerg@thalheim.io>
--------------------------------------------------- -- Copyright (C) 2017 getzze <getzze@gmail.com>
-- Copyright (C) 2017 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local spawn = require("vicious.spawn") local spawn = require("vicious.spawn")
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Pkg: provides number of pending updates on UNIX systems -- Pkg: provides number of pending updates on UNIX systems
-- vicious.widgets.pkg -- vicious.widgets.pkg
local pkg_all = {} local pkg_all = {}

View File

@ -1,25 +1,38 @@
----------------------------------------------------- -- widget type providing RAID array information on GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Hagen Schink <troja84@googlemail.com>
-- * (c) 2010, Hagen Schink <troja84@googlemail.com> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
----------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local io = { open = io.open } local io = { open = io.open }
local setmetatable = setmetatable
local string = { local string = {
len = string.len, len = string.len,
sub = string.sub, sub = string.sub,
match = string.match, match = string.match,
gmatch = string.gmatch gmatch = string.gmatch
} }
-- }}}
local helpers = require"vicious.helpers"
-- }}}
-- Raid: provides state information for a requested RAID array -- Raid: provides state information for a requested RAID array
-- vicious.widgets.raid -- vicious.widgets.raid
local raid_linux = {} local raid_linux = {}
-- Initialize function tables -- Initialize function tables
local mddev = {} local mddev = {}
@ -38,7 +51,7 @@ local function worker(format, warg)
if mddev[warg]["found"] then if mddev[warg]["found"] then
local updev = string.match(line, "%[[_U]+%]") local updev = string.match(line, "%[[_U]+%]")
for i in string.gmatch(updev, "U") do for _ in string.gmatch(updev, "U") do
mddev[warg]["active"] = mddev[warg]["active"] + 1 mddev[warg]["active"] = mddev[warg]["active"] + 1
end end
@ -46,7 +59,7 @@ local function worker(format, warg)
elseif string.sub(line, 1, string.len(warg)) == warg then elseif string.sub(line, 1, string.len(warg)) == warg then
mddev[warg]["found"] = true mddev[warg]["found"] = true
for i in string.gmatch(line, "%[[%d]%]") do for _ in string.gmatch(line, "%[[%d]%]") do
mddev[warg]["assigned"] = mddev[warg]["assigned"] + 1 mddev[warg]["assigned"] = mddev[warg]["assigned"] + 1
end end
end end
@ -57,4 +70,4 @@ local function worker(format, warg)
end end
-- }}} -- }}}
return setmetatable(raid_linux, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(raid_linux, worker)

View File

@ -1,3 +1,22 @@
-- temperature widget type for FreeBSD
-- Copyright (C) 2017,2019 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local string = { match = string.match } local string = { match = string.match }
local type = type local type = type
@ -5,7 +24,6 @@ local type = type
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Thermal: provides temperature levels of ACPI and coretemp thermal zones -- Thermal: provides temperature levels of ACPI and coretemp thermal zones
-- vicious.widgets.thermal -- vicious.widgets.thermal
local thermal_freebsd = {} local thermal_freebsd = {}

View File

@ -1,23 +1,34 @@
--------------------------------------------------- -- temperature widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
local tonumber = tonumber local tonumber = tonumber
local setmetatable = setmetatable
local string = { match = string.match } local string = { match = string.match }
local helpers = require("vicious.helpers")
local math = { floor = math.floor } local math = { floor = math.floor }
local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Thermal: provides temperature levels of ACPI and coretemp thermal zones -- Thermal: provides temperature levels of ACPI and coretemp thermal zones
-- vicious.widgets.thermal -- vicious.widgets.thermal
local thermal_linux = {} local thermal_linux = {}
-- {{{ Thermal widget type -- {{{ Thermal widget type
local function worker(format, warg) local function worker(format, warg)
if not warg then return end if not warg then return end
@ -46,4 +57,4 @@ local function worker(format, warg)
end end
-- }}} -- }}}
return setmetatable(thermal_linux, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(thermal_linux, worker)

View File

@ -1,3 +1,22 @@
-- uptime widget type for FreeBSD
-- Copyright (C) 2017,2019 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local math = { floor = math.floor } local math = { floor = math.floor }
@ -6,12 +25,10 @@ local os = { time = os.time }
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Uptime: provides system uptime and load information -- Uptime: provides system uptime and load information
-- vicious.widgets.uptime -- vicious.widgets.uptime
local uptime_freebsd = {} local uptime_freebsd = {}
-- {{{ Uptime widget type -- {{{ Uptime widget type
function uptime_freebsd.async(format, warg, callback) function uptime_freebsd.async(format, warg, callback)
helpers.sysctl_async( helpers.sysctl_async(

View File

@ -1,22 +1,33 @@
--------------------------------------------------- -- uptime widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2009 Lucas de Vries <lucas@glacicle.com>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- --
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local setmetatable = setmetatable
local math = { floor = math.floor } local math = { floor = math.floor }
local string = { match = string.match } local string = { match = string.match }
local helpers = require("vicious.helpers") local helpers = require("vicious.helpers")
-- }}} -- }}}
-- Uptime: provides system uptime and load information -- Uptime: provides system uptime and load information
-- vicious.widgets.uptime -- vicious.widgets.uptime
local uptime_linux = {} local uptime_linux = {}
-- {{{ Uptime widget type -- {{{ Uptime widget type
local function worker(format) local function worker(format)
local proc = helpers.pathtotable("/proc") local proc = helpers.pathtotable("/proc")
@ -33,4 +44,4 @@ local function worker(format)
end end
-- }}} -- }}}
return setmetatable(uptime_linux, { __call = function(_, ...) return worker(...) end }) return helpers.setcall(uptime_linux, worker)

View File

@ -1,3 +1,22 @@
-- volume widget type for FreeBSD
-- Copyright (C) 2017,2019 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local string = { match = string.match } local string = { match = string.match }
@ -5,12 +24,10 @@ local helpers = require("vicious.helpers")
local spawn = require("vicious.spawn") local spawn = require("vicious.spawn")
-- }}} -- }}}
-- Volume: provides volume levels and state of requested mixer -- Volume: provides volume levels and state of requested mixer
-- vicious.widgets.volume_freebsd -- vicious.widgets.volume_freebsd
local volume_freebsd = {} local volume_freebsd = {}
-- {{{ Volume widget type -- {{{ Volume widget type
local STATE = { on = '🔉', off = '🔈' } local STATE = { on = '🔉', off = '🔈' }

View File

@ -1,7 +1,23 @@
--------------------------------------------------- -- volume widget type for GNU/Linux
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 Brandon Hartshorn <brandonhartshorn@gmail.com>
--------------------------------------------------- -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
@ -13,7 +29,6 @@ local helpers = require("vicious.helpers")
local spawn = require("vicious.spawn") local spawn = require("vicious.spawn")
-- }}} -- }}}
-- Volume: provides volume levels and state of requested ALSA mixers -- Volume: provides volume levels and state of requested ALSA mixers
-- vicious.widgets.volume -- vicious.widgets.volume
local volume_linux = {} local volume_linux = {}

View File

@ -1,19 +1,34 @@
--------------------------------------------------- -- weather widget type fetching from from US NOAA
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2019 Arthur Axel 'fREW' Schmidt <git@frew.co>
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local tonumber = tonumber local tonumber = tonumber
local math = { ceil = math.ceil } local math = { ceil = math.ceil }
local os = { date = os.date, difftime = os.difftime, time = os.time } local os = { date = os.date, difftime = os.difftime, time = os.time }
local string = { match = string.match } local string = { format = string.format }
local spawn = require"vicious.spawn" local spawn = require"vicious.spawn"
local helpers = require"vicious.helpers" local helpers = require"vicious.helpers"
-- }}} -- }}}
-- Weather: provides weather information for a requested station -- Weather: provides weather information for a requested station
-- vicious.widgets.weather -- vicious.widgets.weather
local weather_all = {} local weather_all = {}
@ -27,7 +42,6 @@ local function get_timezone_offset()
return os.difftime(os.time(localdate), os.time(utcdate)) return os.difftime(os.time(localdate), os.time(utcdate))
end end
-- {{{ Weather widget type -- {{{ Weather widget type
local function parse(stdout, stderr, exitreason, exitcode) local function parse(stdout, stderr, exitreason, exitcode)
-- Initialize function tables -- Initialize function tables
@ -51,34 +65,38 @@ local function parse(stdout, stderr, exitreason, exitcode)
if stdout == '' then return _weather end if stdout == '' then return _weather end
_weather["{city}"] = -- City and/or area _weather["{city}"] = -- City and/or area
string.match(stdout, "^(.+)%,.*%([%u]+%)") or _weather["{city}"] stdout:match"^(.+)%,.*%([%u]+%)"
or _weather["{city}"]
_weather["{wind}"] = -- Wind direction and degrees if available _weather["{wind}"] = -- Wind direction and degrees if available
string.match(stdout, "Wind:[%s][%a]+[%s][%a]+[%s](.+)[%s]at.+$") or _weather["{wind}"] stdout:match"Wind:[%s][%a]+[%s][%a]+[%s](.+)[%s]at.+$"
or _weather["{wind}"]
_weather["{windmph}"] = -- Wind speed in MPH if available _weather["{windmph}"] = -- Wind speed in MPH if available
string.match(stdout, "Wind:[%s].+[%s]at[%s]([%d]+)[%s]MPH") or _weather["{windmph}"] stdout:match"Wind:[%s].+[%s]at[%s]([%d]+)[%s]MPH"
or _weather["{windmph}"]
_weather["{sky}"] = -- Sky conditions if available _weather["{sky}"] = -- Sky conditions if available
string.match(stdout, "Sky[%s]conditions:[%s](.-)[%c]") or _weather["{sky}"] stdout:match"Sky[%s]conditions:[%s](.-)[%c]"
or _weather["{sky}"]
_weather["{weather}"] = -- Weather conditions if available _weather["{weather}"] = -- Weather conditions if available
string.match(stdout, "Weather:[%s](.-)[%c]") or _weather["{weather}"] stdout:match"Weather:[%s](.-)[%c]"
or _weather["{weather}"]
_weather["{tempf}"] = -- Temperature in fahrenheit _weather["{tempf}"] = -- Temperature in fahrenheit
string.match(stdout, "Temperature:[%s]([%-]?[%d%.]+).*[%c]") or _weather["{tempf}"] stdout:match"Temperature:[%s]([%-]?[%d%.]+).*[%c]"
or _weather["{tempf}"]
_weather["{dewf}"] = -- Dew Point in fahrenheit _weather["{dewf}"] = -- Dew Point in fahrenheit
string.match(stdout, "Dew[%s]Point:[%s]([%-]?[%d%.]+).*[%c]") or _weather["{dewf}"] stdout:match"Dew[%s]Point:[%s]([%-]?[%d%.]+).*[%c]"
or _weather["{dewf}"]
_weather["{humid}"] = -- Relative humidity in percent _weather["{humid}"] = -- Relative humidity in percent
string.match(stdout, "Relative[%s]Humidity:[%s]([%d]+)%%") or _weather["{humid}"] stdout:match"Relative[%s]Humidity:[%s]([%d]+)%%"
or _weather["{humid}"]
_weather["{press}"] = -- Pressure in hPa _weather["{press}"] = -- Pressure in hPa
string.match(stdout, "Pressure[%s].+%((.+)[%s]hPa%)") or _weather["{press}"] stdout:match"Pressure[%s].+%((.+)[%s]hPa%)"
or _weather["{press}"]
local year, month, day, hour, min = local year, month, day, hour, min =
string.match(stdout, "(%d%d%d%d).(%d%d).(%d%d) (%d%d)(%d%d) UTC") stdout:match"(%d%d%d%d).(%d%d).(%d%d) (%d%d)(%d%d) UTC"
if year ~= nil then if year ~= nil then
local utctable = { local utctable = { year = year, month = month, day = day,
year = year, hour = hour, min = min }
month = month,
day = day,
hour = hour,
min = min,
}
_weather["{when}"] = os.time(utctable) + get_timezone_offset() _weather["{when}"] = os.time(utctable) + get_timezone_offset()
end end
@ -110,7 +128,9 @@ function weather_all.async(format, warg, callback)
-- Get weather forceast by the station ICAO code, from: -- Get weather forceast by the station ICAO code, from:
-- * US National Oceanic and Atmospheric Administration -- * US National Oceanic and Atmospheric Administration
local url = ("https://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT"):format(warg) local url = string.format(
"https://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT",
warg)
spawn.easy_async("curl -fs " .. url, spawn.easy_async("curl -fs " .. url,
function (...) callback(parse(...)) end) function (...) callback(parse(...)) end)
end end

View File

@ -1,7 +1,22 @@
--------------------------------------------------- -- Wi-Fi widget type for GNU/Linux using iwconfig
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org>
-- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2018-2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
@ -12,7 +27,6 @@ local helpers = require"vicious.helpers"
local spawn = require"vicious.spawn" local spawn = require"vicious.spawn"
-- }}} -- }}}
-- Wifi: provides wireless information for a requested interface using iwconfig -- Wifi: provides wireless information for a requested interface using iwconfig
-- vicious.widgets.wifi -- vicious.widgets.wifi
local wifi_linux = {} local wifi_linux = {}

View File

@ -1,7 +1,23 @@
--------------------------------------------------- -- Wi-Fi widget type for GNU/Linux using iw
-- Licensed under the GNU General Public License v2 -- Copyright (C) 2016 Marius M. <mellich@gmx.net>
-- * (c) 2016, Marius M. <mellich@gmx.net> -- Copyright (C) 2017 mutlusun <mutlusun@github.com>
--------------------------------------------------- -- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
-- Copyright (C) 2019 Xaver Hellauer <xaver@hellauer.bayern>
--
-- This file is part of Vicious.
--
-- Vicious is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 2 of the
-- License, or (at your option) any later version.
--
-- Vicious is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with Vicious. If not, see <https://www.gnu.org/licenses/>.
-- {{{ Grab environment -- {{{ Grab environment
local type = type local type = type
@ -11,7 +27,6 @@ local helpers = require("vicious.helpers")
local spawn = require("vicious.spawn") local spawn = require("vicious.spawn")
-- }}} -- }}}
-- Wifiiw: provides wireless information for a requested interface -- Wifiiw: provides wireless information for a requested interface
-- using iw instead of deprecated iwconfig -- using iw instead of deprecated iwconfig
-- vicious.widgets.wifiiw -- vicious.widgets.wifiiw