[][src]Function penrose::contrib::actions::focus_or_spawn

pub fn focus_or_spawn<X: XConn>(
    class: String,
    command: String
) -> KeyEventHandler<X>

Focus a Client with the given class as WM_CLASS or spawn the program with the given command if no such Client exists.

This is useful for key bindings that are based on the program you want to work with rather than having to remember where things are running.