Use utf symbols for some bat states. Mention LuaFileSystem in mdir.lua
This commit is contained in:
parent
f00558cb96
commit
1b9906165d
8
bat.lua
8
bat.lua
|
@ -23,10 +23,10 @@ module("vicious.bat")
|
||||||
function worker(format, batid)
|
function worker(format, batid)
|
||||||
-- Initialise tables
|
-- Initialise tables
|
||||||
local battery_state = {
|
local battery_state = {
|
||||||
["full"] = "*",
|
["full"] = "↯",
|
||||||
["unknown"] = " ",
|
["unknown"] = "⌁",
|
||||||
["charged"] = "*",
|
["charged"] = "↯",
|
||||||
["charging"] = "+",
|
["charging"] = "+",
|
||||||
["discharging"] = "-"
|
["discharging"] = "-"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@ function worker(format)
|
||||||
-- Initialise tables
|
-- Initialise tables
|
||||||
local battery_info = {}
|
local battery_info = {}
|
||||||
local battery_state = {
|
local battery_state = {
|
||||||
["full"] = "*",
|
["full"] = "↯",
|
||||||
["unknown"] = " ",
|
["unknown"] = "⌁",
|
||||||
["charged"] = "*",
|
["charged"] = "↯",
|
||||||
["charging"] = "+",
|
["charging"] = "+",
|
||||||
["discharging"] = "-"
|
["discharging"] = "-"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
mdir.lua
7
mdir.lua
|
@ -15,8 +15,11 @@ module("vicious.mdir")
|
||||||
|
|
||||||
-- {{{ Maildir widget type
|
-- {{{ Maildir widget type
|
||||||
function worker(format, mdir)
|
function worker(format, mdir)
|
||||||
-- Widgets like this one are not agressive like CPU or NET, so we
|
-- Like with the mbox count widget, we would benefit from the
|
||||||
-- can keep it simple, find is OK with me if we execute every >60s
|
-- LuaFileSystem library. However, we didn't rely on extra
|
||||||
|
-- libraries to this point so we won't start now. Widgets like
|
||||||
|
-- this one are not agressive like CPU or NET, so we can keep it
|
||||||
|
-- simple, find is OK with me if we execute every >60s
|
||||||
--
|
--
|
||||||
-- Initialise counters
|
-- Initialise counters
|
||||||
local newcount = 0
|
local newcount = 0
|
||||||
|
|
Loading…
Reference in New Issue