Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIFO IPC support #3

Open
laserswald opened this issue Jun 21, 2017 · 1 comment
Open

FIFO IPC support #3

laserswald opened this issue Jun 21, 2017 · 1 comment

Comments

@laserswald
Copy link
Owner

One issue I have had when trying to test Nitro is that it's damn near impossible to control an experimental window manager that's half done: it doesn't have a way to kill it from within, first of all.

To that end, I need to work on the IPC feature so I can control it via a script.

@laserswald
Copy link
Owner Author

The main design idea I am going for is extremely simple. Nitro will open two named pipes, one for listening and one for output. Messages on the input pipe will end in a newline, and then be split into words, turned into an ni_event, and added to the event queue.
The first word is the event name, and the rest are arguments to the event. Any events without handlers will throw an error to the output pipe, but will not crash the program. The user will need to add a handler in order to handle the message they send, but basic WM handlers are to be included by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant