From b54623a56da0f9b041760c5a7670f27f57dab253 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 27 Dec 2015 15:59:32 +1100 Subject: format detection: recognise swaybar --- src/auto_detect_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auto_detect_format.c') 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"; -- cgit v1.2.3