From 2da4173144b9ca1716c48b7f1ff1d9d231322964 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 30 Jun 2010 15:31:29 +0200 Subject: [PATCH] parser: implement "reload" --- src/cmdparse.y | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/cmdparse.y b/src/cmdparse.y index 8190403f..aa440046 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -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 { -- 2.39.5