From a2365debfaba478042184f5831675d1b08172cc7 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 10 Jul 2018 16:21:26 +0100 Subject: New configuration parameter `textOffsets` (fixes #311) --- src/Config.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/Config.hs') diff --git a/src/Config.hs b/src/Config.hs index b131648..c9ce1a8 100644 --- a/src/Config.hs +++ b/src/Config.hs @@ -56,6 +56,7 @@ data Config = , fgColor :: String -- ^ Default font color , position :: XPosition -- ^ Top Bottom or Static , textOffset :: Int -- ^ Offset from top of window for text + , textOffsets :: [Int] -- ^ List of offsets for additionalFonts , iconOffset :: Int -- ^ Offset from top of window for icons , border :: Border -- ^ NoBorder TopB BottomB or FullB , borderColor :: String -- ^ Border color @@ -125,6 +126,7 @@ defaultConfig = , borderWidth = 1 , textOffset = -1 , iconOffset = -1 + , textOffsets = [] , hideOnStart = False , lowerOnStart = True , persistent = False @@ -151,8 +153,8 @@ infixr :*: -- the 'Runnable.Runnable' Read instance. To install a plugin just add -- the plugin's type to the list of types (separated by ':*:') appearing in -- this function's type signature. -runnableTypes :: Command :*: Monitors :*: Date :*: PipeReader :*: BufferedPipeReader :*: CommandReader :*: StdinReader :*: XMonadLog :*: EWMH :*: Kbd :*: Locks :*: - Mail :*: MBox :*: - DateZone :*: MarqueePipeReader :*: - () +runnableTypes :: Command :*: Monitors :*: Date :*: PipeReader :*: + BufferedPipeReader :*: CommandReader :*: StdinReader :*: + XMonadLog :*: EWMH :*: Kbd :*: Locks :*: Mail :*: MBox :*: + DateZone :*: MarqueePipeReader :*: () runnableTypes = undefined -- cgit v1.2.3