diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index d0b64be..fe3fb2d 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -43,6 +43,14 @@ class TestCommands(TerminalCommands): 'shellcmd': f'{seppuku}\n'} }) + def command_changelayout(self, *args): + message = {'key': 'dashboard', + 'data': {'command': 'layout', + 'layout': args[0]}} + if len(args) >= 2: + message['data']['hide_messages'] = (args[1] in ['yes', 'y', '1', 'true']) + TFWServerConnector().send(message) + if __name__ == '__main__': # pylint: disable=invalid-name