Skip to content

Get Layouts

Mihir Lad edited this page Jul 13, 2020 · 3 revisions

Get Layouts

This message type is used to retrieve the available layouts. The payload of this message type is not used/needed. You will receive a message similar to this:

[
  {
    "symbol": "[]=",
    "address": 94559310858912
  },
  {
    "symbol": "><>",
    "address": 94559310858928
  },
  {
    "symbol": "[M]",
    "address": 94559310858944
  }
]

The layout_address key contains the address of that particular Layout struct in memory. This address can be specified as an argument for the setlayoutsafe command to change the layout to that layout.

The layout symbol should NOT be relied upon as an accurate method of differentiating between layouts. The monocle layout, for example, can have different layout symbols based on the number of clients in view, but the address of the layout will always be constant per dwm session.

Clone this wiki locally