Macro gabelstaplerwm::bind [] [src]

macro_rules! bind {
    ($code:expr, $mods:expr, $mode:expr, $callback:expr) => { ... };
}

Bind a key combination to a callback closure.

Examples

The following snippet binds the key with the number 10, as obtained from the gabelstaplergrab utility, with the modkeys denoted by modkey, in normal mode to a closure returned by the push_tagset! macro.

bind!(10, modkey, Mode::Normal, push_tagset!(0)),