hl.dsp.window.swap¶
- hl.dsp.window.swap(spec: table)¶
Create a dispatcher.
Signature¶
hl.dsp.window.swap(spec: table): HL.Dispatcher
Parameters¶
- directionstring, optional
Swap in a direction.
- target, with, other
HL.WindowSelector, optional Target window selector. These are aliases; the first present one is used.
- nextboolean, optional
Swap with next window.
- prevboolean, optional
Swap with previous window.
- window
HL.WindowSelector, optional Source window.
Returns¶
- dispatcher
HL.Dispatcher Dispatcher object returned by this function.
Examples¶
hl.dispatch(hl.dsp.window.swap({ direction = "left" }))
hl.dispatch(hl.dsp.window.swap({ with = "class:firefox" }))
See also¶
HL.DispatcherDispatcher object returned by this function.
hl.bind()Bind a dispatcher to a key.
hl.dispatch()Execute a dispatcher immediately.