From: David Date: Sun, 27 Dec 2015 04:59:32 +0000 (+1100) Subject: format detection: recognise swaybar X-Git-Tag: 2.10~1^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b54623a56da0f9b041760c5a7670f27f57dab253;p=i3%2Fi3status format detection: recognise swaybar --- diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index 5e17e17..8a256e9 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -44,7 +44,7 @@ static bool parse_proc_stat(pid_t pid, char **outname, pid_t *outppid) { } static char *format_for_process(const char *name) { - if (strcasecmp(name, "i3bar") == 0) + if (strcasecmp(name, "i3bar") == 0 || strcasecmp(name, "swaybar") == 0) return "i3bar"; else if (strcasecmp(name, "dzen2") == 0) return "dzen2";