Be advised that this command-line-options are only temporary and are very likely to be removed, when we finally have a config-file.
+== ENVIRONMENT
+
+=== I3SOCK
+
+If no ipc-socket is specified on the commandline, this variable is used
+to determine the path, at wich the unix domain socket is expected, on which
+to connect to i3.
+
== EXAMPLES
To get a docked bar with some statusinformation, you use
int main(int argc, char **argv) {
int opt;
int option_index = 0;
- char *socket_path = NULL;
+ char *socket_path = getenv("I3SOCK");
char *command = NULL;
char *fontname = NULL;
char *i3_default_sock_path = "~/.i3/ipc.sock";
kill_child();
- FREE(socket_path);
-
FREE(statusline_buffer);
clean_xcb();