aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-31 20:40:36 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-31 20:40:36 +0200
commit1b9906165de561b9db3157719265c910c41ed9ff (patch)
tree0eff3cf15668b9ea6b49b51de6f97cd5cea5f672
parentf00558cb966f8c49149c8c2ffc7f160c40dca229 (diff)
downloadvicious-legacy-1b9906165de561b9db3157719265c910c41ed9ff.tar.xz
Use utf symbols for some bat states. Mention LuaFileSystem in mdir.lua
-rw-r--r--bat.lua8
-rw-r--r--batat.lua8
-rw-r--r--mdir.lua7
3 files changed, 13 insertions, 10 deletions
diff --git a/bat.lua b/bat.lua
index 5ea4b8d..10ed49d 100644
--- a/bat.lua
+++ b/bat.lua
@@ -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"] = "-"
}
diff --git a/batat.lua b/batat.lua
index e8b4a14..0229203 100644
--- a/batat.lua
+++ b/batat.lua
@@ -18,10 +18,10 @@ function worker(format)
-- Initialise tables
local battery_info = {}
local battery_state = {
- ["full"] = "*",
- ["unknown"] = " ",
- ["charged"] = "*",
- ["charging"] = "+",
+ ["full"] = "↯",
+ ["unknown"] = "⌁",
+ ["charged"] = "↯",
+ ["charging"] = "+",
["discharging"] = "-"
}
diff --git a/mdir.lua b/mdir.lua
index e0fe392..6a5146b 100644
--- a/mdir.lua
+++ b/mdir.lua
@@ -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