'exit' -> call cmd_exit()
'restart' -> call cmd_restart()
'reload' -> call cmd_reload()
+ 'shmlog' -> SHMLOG
'border' -> BORDER
'layout' -> LAYOUT
'append_layout' -> APPEND_LAYOUT
command = string
-> call cmd_exec($nosn, $command)
+# shmlog <size>|toggle|on|off
+state SHMLOG:
+ # argument may be a number
+ argument = string
+ -> call cmd_shmlog($argument)
+
# border normal|none|1pixel|toggle|1pixel
state BORDER:
border_style = 'normal', 'pixel'