herbstluftwm: panel: add proper color names

This commit is contained in:
Thomas Preisner 2016-12-08 23:19:15 +01:00
parent 2cbdc3112c
commit 79c9582b13

View file

@ -20,6 +20,19 @@ else
font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*"
iconpath=${HOME}/.config/herbstluftwm/icons iconpath=${HOME}/.config/herbstluftwm/icons
fi fi
# Colors
xrdb=( $(xrdb -query | grep -P "color[0-9]*:" | sort | cut -f 2-) )
# define an array with proper colornames.
declare -A color
index=0
for name in black brightgreen brightyellow brightblue brightmagenta brightcyan brightwhite red green yellow blue magenta cyan white grey brightred; do
color[${name}]=${xrdb[$index]}
((index++))
done
bgcolor=$(hc get frame_border_normal_color) bgcolor=$(hc get frame_border_normal_color)
selbg=$(hc get window_border_active_color) selbg=$(hc get window_border_active_color)
selfg='#101010' selfg='#101010'