summaryrefslogtreecommitdiffhomepage
path: root/readme.md
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-11 22:20:30 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-11 22:20:30 +0200
commitd574e620411a6743805b3f0233b55bfdebfa05c9 (patch)
tree13d4842466befebfa8f76a0a20fc4d898fb68e80 /readme.md
parentd433166f0bb3e1d7e8da20c1d9007bee2b39e522 (diff)
downloadxmobar-d574e620411a6743805b3f0233b55bfdebfa05c9.tar.gz
xmobar-d574e620411a6743805b3f0233b55bfdebfa05c9.tar.bz2
Documentation for the DBus Interface
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 6fb6ef2..5ea2cc4 100644
--- a/readme.md
+++ b/readme.md
@@ -301,6 +301,30 @@ xmobar --help):
Mail bug reports and suggestions to <xmobar@projects.haskell.org>
+## The DBus Interface
+
+xmobar can be controlled over dbus. All signals defined in [src/Signal.hs] as
+`data SignalType` can now be sent over dbus to xmobar.
+
+[src/Signal.hs]: https://github.com/jaor/xmobar/raw/master/src/Signal.hs
+
+- Bus Name: `org.Xmobar.Control`
+- Object Path: `/org/Xmobar/Control`
+- Member Name: Any of SignalType, e.g. `string:Reveal`
+- Interface Name: `org.Xmobar.Control`
+
+An example using the `dbus-send` command line utility:
+
+ dbus-send \
+ --session \
+ --dest=org.Xmobar.Control \
+ --type=method_call \
+ --print-reply \
+ '/org/Xmobar/Control' \
+ org.Xmobar.Control.SendSignal \
+ "string:Toggle"
+
+
## The Output Template
The output template must contain at least one command. xmobar will