diff options
-rw-r--r-- | bat.lua | 8 | ||||
-rw-r--r-- | batat.lua | 8 | ||||
-rw-r--r-- | mdir.lua | 7 |
3 files changed, 13 insertions, 10 deletions
@@ -23,10 +23,10 @@ module("vicious.bat") function worker(format, batid) -- Initialise tables local battery_state = { - ["full"] = "*", - ["unknown"] = " ", - ["charged"] = "*", - ["charging"] = "+", + ["full"] = "↯", + ["unknown"] = "⌁", + ["charged"] = "↯", + ["charging"] = "+", ["discharging"] = "-" } @@ -18,10 +18,10 @@ function worker(format) -- Initialise tables local battery_info = {} local battery_state = { - ["full"] = "*", - ["unknown"] = " ", - ["charged"] = "*", - ["charging"] = "+", + ["full"] = "↯", + ["unknown"] = "⌁", + ["charged"] = "↯", + ["charging"] = "+", ["discharging"] = "-" } @@ -15,8 +15,11 @@ module("vicious.mdir") -- {{{ Maildir widget type function worker(format, mdir) - -- 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 + -- Like with the mbox count widget, we would benefit from the + -- 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 local newcount = 0 |