diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-12-27 11:17:07 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-12-27 11:17:07 +0100 |
commit | 528445abc51166851057eb3891844dc8ca315357 (patch) | |
tree | 20b5a8f6fb77db4eb6f4d6cc7cb2a025c853e11a | |
parent | 45ad5304f785a11536c46aa400f8cc13e15c3078 (diff) | |
parent | b54623a56da0f9b041760c5a7670f27f57dab253 (diff) |
Merge pull request #88 from auscompgeek/swaybar
format detection: recognise swaybar
-rw-r--r-- | src/auto_detect_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |