From b44d0152c47105db081d36b13b590b8f423f0265 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 2 Oct 2017 21:01:18 +0200 Subject: Allow numeric colors in bmonrc --- include/bmon/layout.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bmon/layout.h b/include/bmon/layout.h index cca2a4c..4633806 100644 --- a/include/bmon/layout.h +++ b/include/bmon/layout.h @@ -28,6 +28,8 @@ static int parse_color(const char* color) color_code = COLOR_MAGENTA; else if ((strcasestr(color, "cyan") != NULL)) color_code = COLOR_CYAN; + else if ((atoi(color) >= 0)) + color_code = atoi(color); return color_code; } -- cgit v1.2.3