jaor/xmobar — pull request #53 by jrk- (2012-08-10 09:56:32+00:00)
Title:  DBus IPC module for Xmobar

This exposes the SignalTypes to the DBus session bus.

By issuing a command like

dbus-send --session \
--dest=org.Xmobar.Control \
--type=method_call \
--print-reply \
'/org/Xmobar/Control' \
org.Xmobar.Control.SendSignal \
'string:Reposition'

it is now possible to send every SignalType defined in Signal.hs over dbus to xmobars core loop.

I've also added a new SignalType: TogglePersisent and a new config option: persisent.
When persistent is set to True then xmobar will always be mapped (revealed) and never be hidden.
The flag is checked in eventLoop and operation to map/unmap windows is not carried out if persistence is desired.

By sending a TogglePersistent signal the configuration option "persistent" can be changed. Thus it is possible to hide or show xmobar constantly.

The IPC.DBus module respectively the DBus functionality is only available if compiled with "with_dbus" with needs the DBus module from hackage.