diff options
author | Jose A Ortega Ruiz <jao@gnu.org> | 2010-06-24 19:47:23 +0200 |
---|---|---|
committer | Jose A Ortega Ruiz <jao@gnu.org> | 2010-06-24 19:47:23 +0200 |
commit | 1af9aa0016ec0f233cfeaae1869def4d4c513194 (patch) | |
tree | 20b4b141486e1f4e9aaa6d529e76e6d8ce78c1e0 /Parsers.hs | |
parent | c59b1b7191b06f2e2a6620f7a007128175cd72d6 (diff) | |
download | xmobar-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.hs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" |