summaryrefslogtreecommitdiffhomepage
path: root/src/Config.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/Config.hs
parent0ba96383c08d2c8babca267788d064af37a8c927 (diff)
downloadxmobar-0cae5039d549ee757bcf382c46403335d05aa047.tar.gz
xmobar-0cae5039d549ee757bcf382c46403335d05aa047.tar.bz2
New textOffset and iconOffset configuration parameters
Diffstat (limited to 'src/Config.hs')
-rw-r--r--src/Config.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs
index 3514e50..7e43e92 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -52,6 +52,8 @@ data Config =
, bgColor :: String -- ^ Backgroud color
, fgColor :: String -- ^ Default font color
, position :: XPosition -- ^ Top Bottom or Static
+ , textOffset :: Int -- ^ Offset from top of window for text
+ , iconOffset :: Int -- ^ Offset from top of window for icons
, border :: Border -- ^ NoBorder TopB BottomB or FullB
, borderColor :: String -- ^ Border color
, borderWidth :: Int -- ^ Border width
@@ -113,6 +115,8 @@ defaultConfig =
, border = NoBorder
, borderColor = "#BFBFBF"
, borderWidth = 1
+ , textOffset = -1
+ , iconOffset = -1
, hideOnStart = False
, lowerOnStart = True
, persistent = False