summaryrefslogtreecommitdiffhomepage
path: root/Parsers.hs
diff options
context:
space:
mode:
authorJose A Ortega Ruiz <jao@gnu.org>2010-06-24 19:47:23 +0200
committerJose A Ortega Ruiz <jao@gnu.org>2010-06-24 19:47:23 +0200
commit1af9aa0016ec0f233cfeaae1869def4d4c513194 (patch)
tree20b4b141486e1f4e9aaa6d529e76e6d8ce78c1e0 /Parsers.hs
parentc59b1b7191b06f2e2a6620f7a007128175cd72d6 (diff)
downloadxmobar-1af9aa0016ec0f233cfeaae1869def4d4c513194.tar.gz
xmobar-1af9aa0016ec0f233cfeaae1869def4d4c513194.tar.bz2
Configurable borders
Ignore-this: 6e1e943633b2fdf0859a082fafdd2e44 darcs-hash:20100624174723-748be-024ca29986170fb46fa9d921d7ea274797dcb523.gz
Diffstat (limited to 'Parsers.hs')
-rw-r--r--Parsers.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Parsers.hs b/Parsers.hs
index 88b25f1..462c35d 100644
--- a/Parsers.hs
+++ b/Parsers.hs
@@ -130,21 +130,25 @@ parseConfig = runParser parseConf fields "Config" . stripComments
perms = permute $ Config
<$?> pFont <|?> pBgColor
<|?> pFgColor <|?> pPosition
+ <|?> pBorder <|?> pBdColor
<|?> pLowerOnStart <|?> pCommands
<|?> pSepChar <|?> pAlignSep
<|?> pTemplate
fields = [ "font", "bgColor", "fgColor", "sepChar", "alignSep"
- , "template", "position", "lowerOnStart", "commands"]
+ , "border", "borderColor" ,"template", "position"
+ , "lowerOnStart", "commands"]
pFont = strField font "font"
pBgColor = strField bgColor "bgColor"
pFgColor = strField fgColor "fgColor"
+ pBdColor = strField borderColor "borderColor"
pSepChar = strField sepChar "sepChar"
pAlignSep = strField alignSep "alignSep"
pTemplate = strField template "template"
pPosition = field position "position" $ tillFieldEnd >>= read' "position"
pLowerOnStart = field lowerOnStart "lowerOnStart" $ tillFieldEnd >>= read' "lowerOnStart"
+ pBorder = field border "border" $ tillFieldEnd >>= read' "border"
pCommands = field commands "commands" $ readCommands
staticPos = do string "Static"