patch to allow exec_always in configure file
fixed indentation, updated docs
This commit is contained in:
committed by
Michael Stapelberg
parent
5555c0fd3b
commit
cc24a96e96
@ -518,6 +518,7 @@ void parse_file(const char *f) {
|
||||
%token TOKIPCSOCKET "ipc_socket"
|
||||
%token TOKRESTARTSTATE "restart_state"
|
||||
%token TOKEXEC "exec"
|
||||
%token TOKEXEC_ALWAYS "exec_always"
|
||||
%token <single_color> TOKSINGLECOLOR
|
||||
%token <color> TOKCOLOR
|
||||
%token TOKARROW "→"
|
||||
@ -590,6 +591,7 @@ line:
|
||||
| ipcsocket
|
||||
| restart_state
|
||||
| exec
|
||||
| exec_always
|
||||
| single_color
|
||||
| color
|
||||
| terminal
|
||||
@ -1036,6 +1038,15 @@ exec:
|
||||
}
|
||||
;
|
||||
|
||||
exec_always:
|
||||
TOKEXEC_ALWAYS STR
|
||||
{
|
||||
struct Autostart *new = smalloc(sizeof(struct Autostart));
|
||||
new->command = $2;
|
||||
TAILQ_INSERT_TAIL(&autostarts_always, new, autostarts_always);
|
||||
}
|
||||
;
|
||||
|
||||
terminal:
|
||||
TOKTERMINAL STR
|
||||
{
|
||||
|
Reference in New Issue
Block a user