diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-02-16 23:29:29 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-02-16 23:30:54 +0000 |
commit | d5b4c8e368050cf1b84b03c1379bbbc3c817a713 (patch) | |
tree | 2f918d4c5b95a05ebec68bceec35f7d4fa9a0c4e /src/auto_detect_format.c | |
parent | 7149f6f78e0d105f02d54e1db60db8b191a98acb (diff) |
Implement the i3bar JSON protocol
This hardcodes all the JSON parts. Strings are not properly escaped currently.
The best/easiest way to fix this is by actually using libyajl.
Diffstat (limited to 'src/auto_detect_format.c')
-rw-r--r-- | src/auto_detect_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index 299614a..7c4d65d 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -78,7 +78,7 @@ char *auto_detect_format() { * pipe target the parent process of i3status. If we detect that, we set * the format and we are done. */ if (strcasecmp(parentname, "i3bar") == 0) - format = "none"; + format = "i3bar"; else if (strcasecmp(parentname, "dzen2") == 0) format = "dzen2"; else if (strcasecmp(parentname, "xmobar") == 0) @@ -133,7 +133,7 @@ char *auto_detect_format() { /* Check for known destination programs and set format */ char *newfmt = NULL; if (strcasecmp(name, "i3bar") == 0) - newfmt = "none"; + newfmt = "i3bar"; else if (strcasecmp(name, "dzen2") == 0) newfmt = "dzen2"; else if (strcasecmp(name, "xmobar") == 0) |