summaryrefslogtreecommitdiffhomepage
path: root/src/Config.hs
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-16 20:08:50 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-16 20:08:50 +0200
commitb57de3e23f36756d0ba85a10592dea02561f8b0f (patch)
treee5176525fa7d0712bca80ed16d27070f1d934f22 /src/Config.hs
parent81289a1382f901b11320130f8a9c07e593a468f3 (diff)
downloadxmobar-b57de3e23f36756d0ba85a10592dea02561f8b0f.tar.gz
xmobar-b57de3e23f36756d0ba85a10592dea02561f8b0f.tar.bz2
New configuration option 'hideOnStart'
When set to True the window is initially not mapped, i.e. hidden. It then can be toggled manually (for example using the dbus interface) or automatically (by a plugin) to make it reappear (unhide/reveal).
Diffstat (limited to 'src/Config.hs')
-rw-r--r--src/Config.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs
index 47358b0..a6ad3e2 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -55,6 +55,8 @@ data Config =
, position :: XPosition -- ^ Top Bottom or Static
, border :: Border -- ^ NoBorder TopB BottomB or FullB
, borderColor :: String -- ^ Border color
+ , hideOnStart :: Bool -- ^ Hide (Unmap) the window on
+ -- initialization
, lowerOnStart :: Bool -- ^ Lower to the bottom of the
-- window stack on initialization
, persistent :: Bool -- ^ Whether automatic hiding should
@@ -97,6 +99,7 @@ defaultConfig =
, position = Top
, border = NoBorder
, borderColor = "#BFBFBF"
+ , hideOnStart = False
, lowerOnStart = True
, persistent = False
, commands = [ Run $ Date "%a %b %_d %Y * %H:%M:%S" "theDate" 10