Macro gabelstaplerwm::edit_layout
[−]
[src]
macro_rules! edit_layout { ($($cmd:expr),*;; $print:expr) => { ... }; ($($cmd:expr),* $(; $print:expr)*) => { ... }; }
Edit the current layout via a LayoutCommand
.
Returns a closure for use with bind!
.
Usage
The edit_layout!
macro expects one or more LayoutCommand
s and passes
them to the layout of the currently viewed tagset. This allows for
modification of layout parameters from keybindings. However, there is no
guarantee that a specific layout reacts to a specific LayoutCommand
,
as it may be meaningless in some contexts. For example, the Monocle
layout doesn't have a notion of a master factor, so the corresponding
LayoutCommand
s have no effect on it.
As always, the last parameter(s) specify objects to be printed after completion of the action.