Implement autostart using "exec" in config

Syntax is "exec <application>", like when creating a binding.
Multiple entries are possible, applications are started in
the specified order.
This commit is contained in:
Michael Rudolf
2009-03-29 14:53:48 +02:00
committed by Michael Stapelberg
parent 4a3354da3b
commit 3400f0e6bd
4 changed files with 31 additions and 0 deletions

View File

@ -48,6 +48,7 @@ typedef struct Font i3Font;
typedef struct Container Container;
typedef struct Client Client;
typedef struct Binding Binding;
typedef struct Autostart Autostart;
typedef struct Workspace Workspace;
typedef struct Rect Rect;
typedef struct Screen i3Screen;
@ -191,6 +192,16 @@ struct Binding {
TAILQ_ENTRY(Binding) bindings;
};
/*
* Holds a command specified by an exec-line in the config (see src/config.c)
*
*/
struct Autostart {
/* Command, like in command mode */
char *command;
TAILQ_ENTRY(Autostart) autostarts;
};
/*
* Data structure for cached font information:
* - font id in X11 (load it once)