def get_suffixed_mark(i3, mark):
    """ Returns the name of a currently unused mark starting with the given mark. """
    marks = i3.get_marks()

    suffix = 1
    while True:
        result = '%s_%d' % (mark, suffix)
        if not result in marks:
            return result
        suffix += 1