| moocow(1) | moocow - cow IPC client | moocow(1) |
NAME
moocow - send commands to a running cow instance
SYNOPSIS
moocow command [args ...]
moocow -p [-P prompt] [-S prompt] [-C colour]
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 as formatted JSON 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).
With -p, moocow stays running and reads commands from standard input. When run interactively it prints a connection banner containing the moocow version and client ID, then the prompt >>> before each command. Incomplete commands use the prompt ... until the command is complete. A backslash (\) at the end of a line continues the command on the next line.
Persistent mode also recognises local commands which begin with . and are not sent to cow:
.moocow-set pretty-print-json boolean
.moocow-show
OPTIONS
-h
-p
-P prompt
-S prompt
-C colour
EXIT STATUS
0
1
ENVIRONMENT
COW_IPC_SOCKET
XDG_RUNTIME_DIR
WAYLAND_DISPLAY
FILES
$XDG_RUNTIME_DIR/cow-$WAYLAND_DISPLAY-cmd.sock
EXAMPLES
Query all managed windows:
moocow show windows
Apply a decoration profile:
moocow decor -a default
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
Run commands persistently:
moocow -p
Run persistently with custom prompts:
moocow -p -P 'cow> ' -S '...> ' -C green
SEE ALSO
cow(1), cowbar(1)
AUTHORS
Thomas Adam
| 2026-08-01 | 0.2 |