diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-28 22:47:20 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-28 22:47:20 +0100 |
commit | 00d7e261ec864b9cdbdd3fa1cd90e4121d08630d (patch) | |
tree | d01092a564c9cf40997cd703450ec276f5e4e880 /Config.hs | |
parent | 73cf182f09fd806ff653197a816b7d20bf9319a2 (diff) | |
download | xmobar-00d7e261ec864b9cdbdd3fa1cd90e4121d08630d.tar.gz xmobar-00d7e261ec864b9cdbdd3fa1cd90e4121d08630d.tar.bz2 |
Added support for text alignment commands in the output template
WARNING: this patch breaks old configuration files.
- removed align configuration option
- added alignSep configuration option, a 2 character string: the text
before the first character will be align to left, the text in
between the 2 characters will be centered, and the text after the
second character will be align to the right. For instance:
with alignSep
darcs-hash:20071028214720-d6583-be3839c8989a8075f4b1c94dcbc351b499342370.gz
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,11 +36,11 @@ data Config = , bgColor :: String -- ^ Backgroud color , fgColor :: String -- ^ Default font color , position :: XPosition -- ^ Top Bottom or Static - , align :: String -- ^ text alignment , commands :: [Runnable] -- ^ For setting the command, the command argujments -- and refresh rate for the programs to run (optional) , sepChar :: String -- ^ The character to be used for indicating -- commands in the output template (default '%') + , alignSep :: String -- ^ Separators for left, center and right text alignment , template :: String -- ^ The output template } deriving (Read) @@ -53,10 +53,10 @@ defaultConfig = , bgColor = "#000000" , fgColor = "#BFBFBF" , position = Top - , align = "left" , commands = [] , sepChar = "%" - , template = "Uptime: <fc=#00FF00>%uptime%</fc> ** <fc=#FF0000>%date%</fc>" + , alignSep = "}{" + , template = "Uptime: <fc=#00FF00>%uptime%</fc> }{ <fc=#FF0000>%date%</fc>" } -- | This is the list of types that can be hidden inside |