parser: implement "reload"

next
Michael Stapelberg 2010-06-30 15:31:29 +02:00
parent ea30fdc327
commit 2da4173144
1 changed files with 12 additions and 1 deletions

View File

@ -268,7 +268,8 @@ operation:
exec
| exit
| restart
/*| reload
| reload
/*
| mark
| border */
| 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:
TOK_RESTART
{