Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 9c4c16485ac374583a1055ff7c26cba53ac92c05 Mon Sep 17 00:00:00 2001 |From: mihirlad55 |Date: Fri, 6 Nov 2020 17:13:42 +0000 |Subject: [PATCH] Add IPC support through a unix socket | |This patch currently supports the following requests: |* Run custom commands with arguments (similar to key bind functions) |* Get monitor properties |* Get all available layouts |* Get available tags |* Get client properties |* Subscribe to tag change, client focus change, and layout change, | monitor focus change, focused title change, and client state change | events | |This patch includes a dwm-msg cli program that supports all of the |above requests for easy integration into shell scripts. | |The messages are sent in a JSON format to promote integration to |increase scriptability in languages like Python/JavaScript. | |The patch requires YAJL for JSON parsing and a system with epoll |support. Portability is planned to be increased in the future. | |This patch is best applied after all other patches to avoid merge |conflicts. | |For more info on the IPC implementation and how to send/receive |messages, documentation can be found at |https://github.com/mihirlad55/dwm-ipc |--- | IPCClient.c | 66 +++ | IPCClient.h | 61 +++ | Makefile | 10 +- | config.def.h | 18 + | config.mk | 8 +- | dwm-msg.c | 548 +++++++++++++++++++++++ | dwm.c | 150 ++++++- | ipc.c | 1202 ++++++++++++++++++++++++++++++++++++++++++++++++++ | ipc.h | 320 ++++++++++++++ | util.c | 135 ++++++ | util.h | 10 + | yajl_dumps.c | 351 +++++++++++++++ | yajl_dumps.h | 65 +++ | 13 files changed, 2931 insertions(+), 13 deletions(-) | create mode 100644 IPCClient.c | create mode 100644 IPCClient.h | create mode 100644 dwm-msg.c | create mode 100644 ipc.c | create mode 100644 ipc.h | create mode 100644 yajl_dumps.c | create mode 100644 yajl_dumps.h | |diff --git a/IPCClient.c b/IPCClient.c |new file mode 100644 |index 0000000..0d3eefb |--- /dev/null |+++ b/IPCClient.c -------------------------- (Creating file IPCClient.c...) Patching file IPCClient.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/IPCClient.h b/IPCClient.h |new file mode 100644 |index 0000000..307dfba |--- /dev/null |+++ b/IPCClient.h -------------------------- (Creating file IPCClient.h...) Patching file IPCClient.h using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/Makefile b/Makefile |index 77bcbc0..0456754 100644 |--- a/Makefile |+++ b/Makefile -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 6. Hunk #2 succeeded at 25. Hunk #3 succeeded at 41. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/config.def.h b/config.def.h |index 1c0b587..059a831 100644 |--- a/config.def.h |+++ b/config.def.h -------------------------- Patching file config.def.h using Plan A... Hunk #1 succeeded at 113. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/config.mk b/config.mk |index 7084c33..8570938 100644 |--- a/config.mk |+++ b/config.mk -------------------------- Patching file config.mk using Plan A... Hunk #1 succeeded at 20. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/dwm-msg.c b/dwm-msg.c |new file mode 100644 |index 0000000..1971d32 |--- /dev/null |+++ b/dwm-msg.c -------------------------- (Creating file dwm-msg.c...) Patching file dwm-msg.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/dwm.c b/dwm.c |index 9fd0286..c90c61a 100644 |--- a/dwm.c |+++ b/dwm.c -------------------------- Patching file dwm.c using Plan A... Hunk #1 succeeded at 30. Hunk #2 succeeded at 68. Hunk #3 succeeded at 110. Hunk #4 succeeded at 125. Hunk #5 succeeded at 138. Hunk #6 succeeded at 194. Hunk #7 succeeded at 221. Hunk #8 succeeded at 283. Hunk #9 succeeded at 524. Hunk #10 succeeded at 1002. Hunk #11 succeeded at 1430. Hunk #12 succeeded at 1597. Hunk #13 succeeded at 1692. Hunk #14 succeeded at 2124. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/ipc.c b/ipc.c |new file mode 100644 |index 0000000..c404791 |--- /dev/null |+++ b/ipc.c -------------------------- (Creating file ipc.c...) Patching file ipc.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/ipc.h b/ipc.h |new file mode 100644 |index 0000000..e3b5bba |--- /dev/null |+++ b/ipc.h -------------------------- (Creating file ipc.h...) Patching file ipc.h using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/util.c b/util.c |index fe044fc..dca4794 100644 |--- a/util.c |+++ b/util.c -------------------------- Patching file util.c using Plan A... Hunk #1 succeeded at 3. Hunk #2 succeeded at 35. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/util.h b/util.h |index f633b51..73a238e 100644 |--- a/util.h |+++ b/util.h -------------------------- Patching file util.h using Plan A... Hunk #1 succeeded at 4. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/yajl_dumps.c b/yajl_dumps.c |new file mode 100644 |index 0000000..8bf9688 |--- /dev/null |+++ b/yajl_dumps.c -------------------------- (Creating file yajl_dumps.c...) Patching file yajl_dumps.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/yajl_dumps.h b/yajl_dumps.h |new file mode 100644 |index 0000000..ee9948e |--- /dev/null |+++ b/yajl_dumps.h -------------------------- (Creating file yajl_dumps.h...) Patching file yajl_dumps.h using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... Ignoring the trailing garbage. done