summaryrefslogtreecommitdiffhomepage
path: root/Config.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2007-09-15 18:36:33 +0200
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2007-09-15 18:36:33 +0200
commitef2e760922b334b1736a896fa5d947cda2d8fccb (patch)
treea340d1ab01c2954d6085d52764eae94bca2abb64 /Config.hs
parent36767fbae898f08b0a5deb3c94eba9f8c8dd1729 (diff)
downloadxmobar-ef2e760922b334b1736a896fa5d947cda2d8fccb.tar.gz
xmobar-ef2e760922b334b1736a896fa5d947cda2d8fccb.tar.bz2
Added Date to default config
darcs-hash:20070915163633-d6583-b61b6e05ae604b24015dacd61510f650c4c6dee1.gz
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs49
1 files changed, 25 insertions, 24 deletions
diff --git a/Config.hs b/Config.hs
index a9e7bb6..f13f39f 100644
--- a/Config.hs
+++ b/Config.hs
@@ -22,42 +22,43 @@ module Config ( -- * Configuration
import Commands
import {-# SOURCE #-} Runnable
import Plugins.Monitors
+import Plugins.Date
-- $config
-- Configuration data type and default configuration
-- | The configuration data type
data Config =
- Config { font :: String -- ^ Font
- , bgColor :: String -- ^ Backgroud color
- , fgColor :: String -- ^ Default font color
- , xPos :: Int -- ^ x Window position (origin in the upper left corner)
- , yPos :: Int -- ^ y Window position
- , width :: Int -- ^ Window width
- , height :: Int -- ^ Window height
- , align :: String -- ^ text alignment
- , refresh :: Int -- ^ Refresh rate in tenth of seconds
+ Config { font :: String -- ^ Font
+ , bgColor :: String -- ^ Backgroud color
+ , fgColor :: String -- ^ Default font color
+ , xPos :: Int -- ^ x Window position (origin in the upper left corner)
+ , yPos :: Int -- ^ y Window position
+ , width :: Int -- ^ Window width
+ , height :: Int -- ^ Window height
+ , align :: String -- ^ text alignment
+ , refresh :: Int -- ^ Refresh rate in tenth of seconds
, 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 '%')
- , template :: String -- ^ The output template
+ -- and refresh rate for the programs to run (optional)
+ , sepChar :: String -- ^ The character to be used for indicating
+ -- commands in the output template (default '%')
+ , template :: String -- ^ The output template
} deriving (Read)
-- | The default configuration values
defaultConfig :: Config
defaultConfig =
- Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
- , bgColor = "#000000"
- , fgColor = "#BFBFBF"
- , xPos = 0
- , yPos = 0
- , width = 1024
- , height = 15
- , align = "left"
- , refresh = 10
+ Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+ , bgColor = "#000000"
+ , fgColor = "#BFBFBF"
+ , xPos = 0
+ , yPos = 0
+ , width = 1024
+ , height = 15
+ , align = "left"
+ , refresh = 10
, commands = []
- , sepChar = "%"
+ , sepChar = "%"
, template = "Uptime: <fc=#00FF00>%uptime%</fc> ** <fc=#FF0000>%date%</fc>"
}
@@ -67,5 +68,5 @@ defaultConfig =
-- the 'Runnable.Runnable' Read instance. To install a plugin just add
-- the plugin's type to the list of types appearing in this function's type
-- signature.
-runnableTypes :: (Command,(Monitors,()))
+runnableTypes :: (Command,(Monitors,(Date,())))
runnableTypes = undefined