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:
committed by
Michael Stapelberg
parent
4a3354da3b
commit
3400f0e6bd
@ -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)
|
||||
|
Reference in New Issue
Block a user