Make the restart path configurable.
This commit is contained in:
committed by
Michael Stapelberg
parent
622b51a1ea
commit
0a17fe973c
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user