setattachdefault - bakkeby/dusk GitHub Wiki
Function | Expected argument | Default keybinding |
---|---|---|
setattachdefault | string | N/A |
The setattachdefault
function can be used to change the default attach method for new client
windows during runtime.
This applies to windows that are either not ruled or do not have any attach flags that overrides the default attach method.
The default attach method can be set in config.h via the
attachdefault
variable:
static unsigned int attachdefault = AttachAside; // or AttachMaster, AttachAbove, AttachBelow, AttachBottom
External commands:
$ duskc run_command setattachdefault AttachMaster # new windows to attach at the top of the master area
$ duskc run_command setattachdefault AttachAbove # new windows to attach at the top of the stack area
$ duskc run_command setattachdefault AttachBelow # new windows to attach at the bottom of the stack area
$ duskc run_command setattachdefault AttachAside # new windows to attach above the currently focused client
$ duskc run_command setattachdefault AttachBottom # new windows to attach below the currently focused client