moocow - Man Page
send commands to a running cow instance
Synopsis
moocow command [args ...]
Description
moocow is the command-line IPC client for the cow(1) window manager. It connects to the cow IPC socket, sends the given command, waits for the JSON response, and prints it to standard output.
All arguments are joined with spaces and sent as a single newline-terminated line. The full command language is described in cow(1).
Exit Status
- 0
The command was accepted and cow responded with "ok": true.
- 1
A connection error occurred, or cow responded with "ok": false. The error message is included in the JSON response and printed to standard output.
Environment
- COW_IPC_SOCKET
Override the socket path. When set, moocow connects to this path instead of the default.
- XDG_RUNTIME_DIR
Used to locate the default socket path. Must be set if COW_IPC_SOCKET is not.
Files
- $XDG_RUNTIME_DIR/cow-cmd.sock
Default IPC command socket created by cow(1).
Examples
Query all managed windows:
moocow show windows
Change the border width at runtime:
moocow set border 5
Switch to desk 3:
moocow desk -d 3
Reload the configuration:
moocow quit -r
Close the focused window:
moocow winops -c
List all available commands:
moocow list-commands
See Also
Authors
Thomas Adam
Referenced By
cow(1), cowbar(1), cowident(1), cowrearrange(1).