2022-08-26 18:51:41 +02:00
|
|
|
/* This is the header for the IPC feature.
|
|
|
|
* If you're not going to be using IPC, you can leave this as default, it will compile just fine.
|
|
|
|
*
|
|
|
|
* If you are going to use IPC you must follow the points below:
|
|
|
|
*
|
2022-11-30 17:37:20 +01:00
|
|
|
* - If you use an operating system that isn't GNU/Linux, edit config.mk and comment out the three lines, then edit toggle.h and set USEIPC to 0. IPC support is not available for non-GNU/Linux operating systems.
|
2022-08-26 18:51:41 +02:00
|
|
|
* - Install the 'yajl' package using your distro's package manager. It will depend on your distribution but on Gentoo the package is named 'yajl'.
|
2022-08-26 18:52:23 +02:00
|
|
|
*/
|
2022-08-26 18:51:41 +02:00
|
|
|
|
2022-12-06 20:30:24 +01:00
|
|
|
static char *ipcsockpath = "/tmp/speedwm.sock"; /* May be a good idea to change this to 'dwm.sock' for compatibility reasons. */
|
2022-08-26 11:41:11 +02:00
|
|
|
static IPCCommand ipccommands[] = {
|
2022-11-30 17:37:20 +01:00
|
|
|
ipccmd( view, 1, { ARG_TYPE_UINT } ),
|
|
|
|
ipccmd( tagmon, 1, { ARG_TYPE_UINT } ),
|
|
|
|
ipccmd( focusmon, 1, { ARG_TYPE_SINT } ),
|
|
|
|
ipccmd( focusstackvis, 1, { ARG_TYPE_SINT } ),
|
|
|
|
ipccmd( zoom, 1, { ARG_TYPE_NONE } ),
|
|
|
|
ipccmd( incmastercount, 1, { ARG_TYPE_SINT } ),
|
|
|
|
ipccmd( killclient, 1, { ARG_TYPE_SINT } ),
|
|
|
|
ipccmd( togglefloating, 1, { ARG_TYPE_NONE } ),
|
|
|
|
ipccmd( setmfact, 1, { ARG_TYPE_FLOAT } ),
|
|
|
|
ipccmd( setlayoutsafe, 1, { ARG_TYPE_PTR } ),
|
|
|
|
ipccmd( quit, 1, { ARG_TYPE_NONE } )
|
2022-08-26 11:41:11 +02:00
|
|
|
};
|