Skip to content

. #120

Answered by bakkeby
fov95 asked this question in Q&A
. #120
May 1, 2021 · 1 comment
Discussion options

You must be logged in to vote

Yes this is pretty straightforward.

In config.h you have

static IPCCommand ipccommands[] = {
...
    IPCCOMMAND( quit, 1, {ARG_TYPE_NONE} ),
...
};

so that you can run this to exit dwm:

$ dwm-msg run_command quit


You'll need to change this to:

    IPCCOMMAND( quit, 1, {ARG_TYPE_SINT} ),

then you can run

$ dwm-msg run_command quit 0 # to quit
$ dwm-msg run_command quit 1 # to restart

but

$ dwm-msg run_command quit # will fail as dwm-msg expects an argument

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bakkeby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants