From dc556e5415ee1d1b3b74508e016fb1693d55a311 Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Thu, 12 Dec 2013 13:35:39 +0100 Subject: [PATCH] bat: Use a real minus sign for the charging status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, a simple hyphen (“-”) was used to show that the battery is discharging. The minus sign is a distinct char, and also distinct from the en-dash (“–”) and the em-dash (“—”). With this commit, I put in a unicode “MINUS SIGN” (0x2212) which I created with a Digraph in Vim `^k-2`. Signed-off-by: Adrian C. (anrxc) --- widgets/bat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/bat.lua b/widgets/bat.lua index 34d1124..76a9d4c 100644 --- a/widgets/bat.lua +++ b/widgets/bat.lua @@ -30,7 +30,7 @@ local function worker(format, warg) ["Unknown\n"] = "⌁", ["Charged\n"] = "↯", ["Charging\n"] = "+", - ["Discharging\n"] = "-" + ["Discharging\n"] = "−" } -- Check if the battery is present