def load_x11_colors(file='/usr/share/X11/rgb.txt'):
    """Parse X Windows System's color definition and return all colors as a
    list.  Every color is represented as [NAME, R, G, B]."""
    try:
        f = open(file)
    except FileNotFoundError:
        return []
    colors = []
    for line in f:
        line = line.rstrip()
        if line.startswith('!'):
            continue
        color, name = line.split('\t\t')
        r, g, b = color.split()
        colors.append([name, int(r), int(g), int(b)])
    return colors
