Add RPC system
Allow external tools to perform text-based communication with karuiwm via Unix socket.
-
Provide Unix socket; -
Provide Unix socket in a reasonable location (e.g. XDG_RUNTIME_DIR
); -
Delete socket file on shutdown (not critical, as it's also removed on startup, but still cleaner).
Currently, this allows external tools (e.g. nc
) to call actions and bind/unbind keys and buttons. It doesn't yet allow setting/unsetting configuration variables, but that's not a blocker for merging this.
Edited by Tinu Weber