bindsym Mod1+c kill
# Restore saved JSON layout
-bindsym Mod1+y restore /home/michael/i3/layout.json
+bindsym Mod1+y append_layout /home/michael/i3/layout.json
# Reload the configuration file
bindsym Mod1+Shift+j reload
or { return TOK_OR; }
ppt { return TOK_PPT; }
nop { WS_STRING; return TOK_NOP; }
-restore { WS_STRING; return TOK_RESTORE; }
+append_layout { WS_STRING; return TOK_APPEND_LAYOUT; }
mark { WS_STRING; return TOK_MARK; }
enable { return TOK_ENABLE; }
%token TOK_RIGHT "right"
%token TOK_PARENT "parent"
%token TOK_CHILD "child"
-%token TOK_RESTORE "restore"
+%token TOK_APPEND_LAYOUT "append_layout"
%token TOK_MARK "mark"
%token TOK_RESIZE "resize"
%token TOK_GROW "grow"
| reload
| border
| layout
- | restore
+ | append_layout
| move
| workspace
| focus
}
;
-restore:
- TOK_RESTORE STR
+append_layout:
+ TOK_APPEND_LAYOUT STR
{
printf("restoring \"%s\"\n", $2);
tree_append_json($2);