1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00
conky/bin/format-colors.sh
Tin Švagelj 93ffab51a0
Use perfect hash (gperf) for parsing color names (#1848)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-24 06:24:54 +00:00

8 lines
180 B
Bash
Executable File

#!/bin/sh
# Prepares stdin input YAML for gperf consumption
echo "struct rgb { const char *name; uint8_t red; uint8_t green; uint8_t blue; };"
echo "%%"
tr -d '[]"' | tr ":" ","