summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-12-27 11:17:07 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-12-27 11:17:07 +0100
commit528445abc51166851057eb3891844dc8ca315357 (patch)
tree20b5a8f6fb77db4eb6f4d6cc7cb2a025c853e11a /src
parent45ad5304f785a11536c46aa400f8cc13e15c3078 (diff)
parentb54623a56da0f9b041760c5a7670f27f57dab253 (diff)
Merge pull request #88 from auscompgeek/swaybar
format detection: recognise swaybar
Diffstat (limited to 'src')
-rw-r--r--src/auto_detect_format.c2
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";