summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEric Mrak <mail@ericmrak.info>2014-03-14 18:10:18 -0700
committerEric Mrak <mail@ericmrak.info>2014-03-14 18:10:18 -0700
commit48167e6f50f61453a269b321c8d3c8dad7a347b4 (patch)
tree0f9ae86caae3aec4b617be3069501ff77d0418d7
parent62843563ef21fa4c106572e91e88c8127bcf3fbf (diff)
downloadxmobar-48167e6f50f61453a269b321c8d3c8dad7a347b4.tar.gz
xmobar-48167e6f50f61453a269b321c8d3c8dad7a347b4.tar.bz2
Wireless module has qualityvbar
-rw-r--r--readme.md2
-rw-r--r--src/Plugins/Monitors/Wireless.hs5
2 files changed, 4 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index 9153c26..8e0496a 100644
--- a/readme.md
+++ b/readme.md
@@ -696,7 +696,7 @@ something like:
"wlan0" []` can be used as `%wlan0wi%`
- Args: default monitor arguments
- Variables that can be used with the `-t`/`--template` argument:
- `essid`, `quality`, `qualitybar`
+ `essid`, `quality`, `qualitybar`, `qualityvbar`
- Default template: `<essid> <quality>`
- Requires the C library [iwlib] (part of the wireless tools suite)
installed in your system. In addition, to activate this plugin you
diff --git a/src/Plugins/Monitors/Wireless.hs b/src/Plugins/Monitors/Wireless.hs
index f8192dc..d5342a1 100644
--- a/src/Plugins/Monitors/Wireless.hs
+++ b/src/Plugins/Monitors/Wireless.hs
@@ -19,7 +19,7 @@ import IWlib
wirelessConfig :: IO MConfig
wirelessConfig =
- mkMConfig "<essid> <quality>" ["essid", "quality", "qualitybar"]
+ mkMConfig "<essid> <quality>" ["essid", "quality", "qualitybar", "qualityvbar"]
runWireless :: [String] -> Monitor String
runWireless (iface:_) = do
@@ -33,5 +33,6 @@ runWireless (iface:_) = do
then showPercentWithColors (qlty / 100)
else showWithPadding ""
qb <- showPercentBar qlty (qlty / 100)
- parseTemplate [ep, q, qb]
+ qvb <- showVerticalBar qlty
+ parseTemplate [ep, q, qb, qvb]
runWireless _ = getConfigValue naString