Make the restart path configurable.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2010-11-26 22:27:38 -02:00
committed by Michael Stapelberg
parent 622b51a1ea
commit 0a17fe973c
6 changed files with 20 additions and 3 deletions

View File

@ -217,6 +217,7 @@ void parse_file(const char *f) {
%token TOKASSIGN "assign"
%token TOKSET
%token TOKIPCSOCKET "ipc_socket"
%token TOKRESTARTSTATE "restart_state"
%token TOKEXEC "exec"
%token TOKSINGLECOLOR
%token TOKCOLOR
@ -248,6 +249,7 @@ line:
| workspace
| assign
| ipcsocket
| restart_state
| exec
| single_color
| color
@ -554,6 +556,13 @@ ipcsocket:
}
;
restart_state:
TOKRESTARTSTATE WHITESPACE STR
{
config.restart_state_path = $<string>3;
}
;
exec:
TOKEXEC WHITESPACE STR
{