From 4e595fa100dca772a97a7c39d8c339a5428e0bb8 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Sun, 27 Dec 2009 09:56:41 +0100 Subject: small tweak to battery logger Ignore-this: 350dfed0cedd250cd9d4bd3391cbe034 darcs-hash:20091227085641-1e371-d16502a506ecd2685eaa8f18acdedeb9bdd2c93e.gz --- XMonad/Util/Loggers.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Util') diff --git a/XMonad/Util/Loggers.hs b/XMonad/Util/Loggers.hs index 3065d30..3c8c3ee 100644 --- a/XMonad/Util/Loggers.hs +++ b/XMonad/Util/Loggers.hs @@ -116,7 +116,7 @@ aumixVolume = logCmd "aumix -vq" -- At some point it would be nice to make this more general\/have -- fewer dependencies (assumes @\/usr\/bin\/acpi@ and @sed@ are installed.) battery :: Logger -battery = logCmd "/usr/bin/acpi | sed -r 's/.*?: (.*%).*/\\1/; s/discharging, ([0-9]+%)/\\1-/; s/charging, ([0-9]+%)/\\1+/; s/charged, //'" +battery = logCmd "/usr/bin/acpi | sed -r 's/.*?: (.*%).*/\\1/; s/[dD]ischarging, ([0-9]+%)/\\1-/; s/[cC]harging, ([0-9]+%)/\\1+/; s/[cC]harged, //'" -- | Get the current date and time, and format them via the -- given format string. The format used is the same as that used -- cgit v1.2.3