summaryrefslogtreecommitdiffhomepage
path: root/src/Parsers.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2014-12-02 05:02:30 +0100
committerjao <jao@gnu.org>2014-12-02 05:02:30 +0100
commit0cae5039d549ee757bcf382c46403335d05aa047 (patch)
tree0817f7e212ef784e08869d194fcc128ece3be84f /src/Parsers.hs
parent0ba96383c08d2c8babca267788d064af37a8c927 (diff)
downloadxmobar-0cae5039d549ee757bcf382c46403335d05aa047.tar.gz
xmobar-0cae5039d549ee757bcf382c46403335d05aa047.tar.bz2
New textOffset and iconOffset configuration parameters
Diffstat (limited to 'src/Parsers.hs')
-rw-r--r--src/Parsers.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Parsers.hs b/src/Parsers.hs
index dceb4b7..cdc180d 100644
--- a/src/Parsers.hs
+++ b/src/Parsers.hs
@@ -199,6 +199,7 @@ parseConfig = runParser parseConf fields "Config" . stripComments
perms = permute $ Config
<$?> pFont <|?> pBgColor <|?> pFgColor <|?> pPosition
+ <|?> pTextOffset <|?> pIconOffset
<|?> pBorder <|?> pBdColor <|?> pBdWidth <|?> pHideOnStart
<|?> pAllDesktops <|?> pOverrideRedirect <|?> pPickBroadest
<|?> pLowerOnStart <|?> pPersistent <|?> pIconRoot
@@ -207,6 +208,7 @@ parseConfig = runParser parseConf fields "Config" . stripComments
fields = [ "font", "bgColor", "fgColor", "sepChar", "alignSep"
, "border", "borderColor" ,"template", "position"
+ , "textOffset", "iconOffset"
, "allDesktops", "overrideRedirect", "pickBroadest"
, "hideOnStart", "lowerOnStart", "persistent", "iconRoot"
, "commands"
@@ -220,6 +222,8 @@ parseConfig = runParser parseConf fields "Config" . stripComments
pAlignSep = strField alignSep "alignSep"
pTemplate = strField template "template"
+ pTextOffset = readField textOffset "textOffset"
+ pIconOffset = readField iconOffset "iconOffset"
pPosition = readField position "position"
pHideOnStart = readField hideOnStart "hideOnStart"
pLowerOnStart = readField lowerOnStart "lowerOnStart"