summaryrefslogtreecommitdiff
path: root/src/auto_detect_format.c
diff options
context:
space:
mode:
authorDavid <auscompgeek@users.noreply.github.com>2015-12-27 15:59:32 +1100
committerDavid <auscompgeek@users.noreply.github.com>2015-12-27 15:59:32 +1100
commitb54623a56da0f9b041760c5a7670f27f57dab253 (patch)
tree20b5a8f6fb77db4eb6f4d6cc7cb2a025c853e11a /src/auto_detect_format.c
parent45ad5304f785a11536c46aa400f8cc13e15c3078 (diff)
format detection: recognise swaybar
Diffstat (limited to 'src/auto_detect_format.c')
-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";