Function add

Source
pub fn add(
    output: &OutputHandle,
    tag_names: impl IntoIterator<Item = impl ToString>,
) -> impl Iterator<Item = TagHandle>
Expand description

Adds tags to the specified output.

This will add tags with the given names to output and return TagHandles to all of them.

ยงExamples

// Add tags 1-5 to the focused output
if let Some(op) = output::get_focused() {
    let tags = tag::add(&op, ["1", "2", "3", "4", "5"]);
}