summaryrefslogtreecommitdiff
path: root/src/auto_detect_format.c
AgeCommit message (Collapse)Author
2013-11-09format detection: simplify code, handle "sh" processes in the hierarchyMichael Stapelberg
i3 starts processes using /bin/sh now, not $SHELL. This increases the likelihood with which we are started by dash, which tends to leave its processes in the hierarchy, e.g.: michael 1524 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-s michael 1525 \_ /bin/sh -c i3status michael 1526 \_ i3status This case is now handled correctly — when the parent is “sh”, the parent of sh will be used instead.
2013-05-19Implement term-output-formatAxel Wagner
2013-02-04Bugfix: output auto detect: properly detect ambiguous situations (Thanks mist)Michael Stapelberg
fixes #940
2012-05-07Use (void) instead of () for functions without args (Thanks fernandotcl)Michael Stapelberg
See also: http://article.gmane.org/gmane.linux.kernel/1268792 The C compiler will handle (void) as "no arguments" and () as "variadic function" (equivalent to (...)) which might lead to subtle errors.
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg
This hardcodes all the JSON parts. Strings are not properly escaped currently. The best/easiest way to fix this is by actually using libyajl.
2011-07-13correctly auto-detect the output format with zsh (Thanks mist)Michael Stapelberg
2011-07-13fix memory leakMichael Stapelberg
2011-07-13magic: try to auto-detect output_format by default (dzen2/i3bar/xmobar)Michael Stapelberg