Skip to content
OnFlApp edited this page Aug 4, 2023 · 3 revisions

WindowMaker includes initial support for D-BUS. The D-BUS allows you to control the window manager externally.

enable D-BUS

Do ./configure --enable-dbus before you compile. You must have dbus dev libraries installed for this to work.

control WindowMaker from the command line

The easiest way to send commands to WindowMaker is to use dbus-send command. For example, to get information about all windows, execute the following:

dbus-send --session --print-reply --dest=org.wmaker.WMServer /org/wmaker/WMDesktop org.wmaker.WMInterface.GetWindows string:0

You can get all information about all supported properties, methods and signals by executing:

gdbus introspect --session --dest org.wmaker.WMServer --object-path /org/wmaker/WMDesktop

API

methods

  • GetWindows
  • ActivateWindow
  • ActivateWorkspace

properties

  • Version
  • ActiveWindow
  • ActiveWorkspace

signals

  • OnWindowActivate
  • OnWorkspaceActivate
Clone this wiki locally