aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@cis.upenn.edu>2009-12-27 09:56:41 +0100
committerBrent Yorgey <byorgey@cis.upenn.edu>2009-12-27 09:56:41 +0100
commit4e595fa100dca772a97a7c39d8c339a5428e0bb8 (patch)
tree0a45f123fbc83a049e852201eccc9c47112fe6db /XMonad/Util
parent8b173f193edf10e9a9bbc71d9b48d8455095748b (diff)
downloadXMonadContrib-4e595fa100dca772a97a7c39d8c339a5428e0bb8.tar.gz
XMonadContrib-4e595fa100dca772a97a7c39d8c339a5428e0bb8.tar.xz
XMonadContrib-4e595fa100dca772a97a7c39d8c339a5428e0bb8.zip
small tweak to battery logger
Ignore-this: 350dfed0cedd250cd9d4bd3391cbe034 darcs-hash:20091227085641-1e371-d16502a506ecd2685eaa8f18acdedeb9bdd2c93e.gz
Diffstat (limited to 'XMonad/Util')
-rw-r--r--XMonad/Util/Loggers.hs2
1 files changed, 1 insertions, 1 deletions
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