| SCROTWMCTL(1) | General Commands Manual | SCROTWMCTL(1) |
NAME
scrotwmctl — send
one bus command to scrotwmd
SYNOPSIS
scrotwmctl |
[-s socket]
command |
DESCRIPTION
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:
-ssocket- Connect to the unix socket socket instead of /tmp/scrotwmd.sock.
The commands are as follows:
ping- Send a ping and read messages up to the pong, then print “PONG”.
shutdown- Tell scrotwmd(8) to shut down.
FILES
- /tmp/scrotwmd.sock
- the bus socket without
-s
EXIT STATUS
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.
EXAMPLES
Start a daemon on a test socket and stop it:
$ scrotwmd -s /tmp/test.sock & $ scrotwmctl -s /tmp/test.sock shutdown SHUTDOWN sent
SEE ALSO
AUTHORS
Marco Peereboom <marco@peereboom.us>
| November 13, 2026 | Void Linux |