parser: implement "reload"
This commit is contained in:
parent
ea30fdc327
commit
2da4173144
|
@ -268,7 +268,8 @@ operation:
|
||||||
exec
|
exec
|
||||||
| exit
|
| exit
|
||||||
| restart
|
| restart
|
||||||
/*| reload
|
| reload
|
||||||
|
/*
|
||||||
| mark
|
| mark
|
||||||
| border */
|
| border */
|
||||||
| layout
|
| layout
|
||||||
|
@ -304,6 +305,16 @@ exit:
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
reload:
|
||||||
|
TOK_RELOAD
|
||||||
|
{
|
||||||
|
printf("reloading\n");
|
||||||
|
load_configuration(conn, NULL, true);
|
||||||
|
/* Send an IPC event just in case the ws names have changed */
|
||||||
|
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"reload\"}");
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
TOK_RESTART
|
TOK_RESTART
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue