-
. |
Beta Was this translation helpful? Give feedback.
Answered by
bakkeby
May 1, 2021
Replies: 1 comment
-
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
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bakkeby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes this is pretty straightforward.
In config.h you have
so that you can run this to exit dwm:
You'll need to change this to:
then you can run
but
$ dwm-msg run_command quit # will fail as dwm-msg expects an argument