1#autoload
2
3local expl list desc
4
5_tags colormapids || return 1
6
7list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"})
8
9if zstyle -T ":completion:${curcontext}:colormap-id" verbose; then
10  desc=(-ld list)
11else
12  desc=()
13fi
14
15_wanted colormapids expl 'colormap id' \
16    compadd "$@" "$desc[@]" - "${(@)list%% *}" 
17