scrotwmos
SCROTWMCTL(1) General Commands Manual SCROTWMCTL(1)

scrotwmctl — send one bus command to scrotwmd

scrotwmctl [-s socket] command

scrotwmctl is a test client for the bus protocol. It connects to scrotwmd(8) on a unix socket, does the bus handshake as the compositor, sends one command, prints what it sent, and exits. It waits for no answer, except for ping.

The options are as follows:

socket
Connect to the unix socket socket instead of /tmp/scrotwmd.sock.

The commands are as follows:

Send a ping and read messages up to the pong, then print “PONG”.
Tell scrotwmd(8) to shut down.

/tmp/scrotwmd.sock
the bus socket without -s

The scrotwmctl utility exits 0 on success, and >0 if an error occurs. A failed connect, handshake, send, or ping is a failure. So is a wrong number of arguments or an unknown command.

Start a daemon on a test socket and stop it:

$ scrotwmd -s /tmp/test.sock &
$ scrotwmctl -s /tmp/test.sock shutdown
SHUTDOWN sent

scrotwmd(8)

Marco Peereboom <marco@peereboom.us>

November 13, 2026 Void Linux