2022-10-31 07:22:29 +00:00
|
|
|
wayvncctl(1)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
2022-11-06 02:42:24 +00:00
|
|
|
wayvncctl - A command line control lient for wayvnc(1)
|
2022-10-31 07:22:29 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
*wayvncctl* [options] [command [--parameter value ...]]
|
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
*-S, --socket=<path>*
|
|
|
|
Set wayvnc control socket path. Default: $XDG_RUNTIME_DIR/wayvncctl
|
|
|
|
or /tmp/wayvncctl-$UID
|
|
|
|
|
2022-11-05 13:53:17 +00:00
|
|
|
*-j, --json*
|
|
|
|
Produce json output to stdout.
|
|
|
|
|
2022-10-31 07:22:29 +00:00
|
|
|
*-V, --version*
|
|
|
|
Show version info.
|
|
|
|
|
|
|
|
*-v,--verbose*
|
|
|
|
Be more verbose.
|
|
|
|
|
|
|
|
*-h, --help*
|
2022-11-06 02:42:24 +00:00
|
|
|
Get help about the wayvncctl command itself (lists these options). Does
|
|
|
|
not connect to the wayvncctl control socket.
|
2022-10-31 07:22:29 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
*wayvnc(1)* allows runtime interaction via a unix socket json-ipc mechanism.
|
|
|
|
This command line utility provides easy interaction with those commands.
|
|
|
|
|
|
|
|
For a full list of currently supported commands, see
|
2022-11-06 02:42:24 +00:00
|
|
|
*wayvnc(1)* section _IPC COMMANDS_, or run the
|
2022-10-31 07:22:29 +00:00
|
|
|
*wayvncctl help* command.
|
|
|
|
|
2022-11-06 02:42:24 +00:00
|
|
|
Running *wayvncctl help* contacts the server over the control socket and returns
|
|
|
|
a list of the available commands.
|
|
|
|
|
|
|
|
Running *wayvncctl command-name --help* returns a description of the server-side
|
|
|
|
command and its available parameters.
|
|
|
|
|
2022-11-06 20:05:14 +00:00
|
|
|
# ASYNCHRONOUS EVENTS
|
|
|
|
|
|
|
|
While *wayvncctl* normally terminates after sending one request and receiving
|
|
|
|
the corresponding reply, the *event-receive* command acts differently. Instead
|
|
|
|
of exiting immediately, *wayvncctl* waits for any events fr the server, printing
|
|
|
|
each to stdout as they arrive. This mode of operation will block until either
|
|
|
|
it receives a signal to terminate, or until the wayvnc server terminates.
|
|
|
|
|
2022-10-31 07:22:29 +00:00
|
|
|
# EXAMPLES
|
|
|
|
|
2022-11-06 02:42:24 +00:00
|
|
|
Query the server for all available IPC command names:
|
2022-10-31 07:22:29 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ wayvncctl help
|
2022-11-05 13:53:17 +00:00
|
|
|
Allowed commands:
|
|
|
|
- help
|
|
|
|
- version
|
|
|
|
- set-output
|
|
|
|
|
|
|
|
Run 'wayvncctl command-name --help' for command-specific details.
|
2022-10-31 07:22:29 +00:00
|
|
|
```
|
|
|
|
|
2022-11-06 02:42:24 +00:00
|
|
|
Get help on the "set-output" IPC command:
|
2022-10-31 07:22:29 +00:00
|
|
|
|
|
|
|
```
|
2022-11-06 02:42:24 +00:00
|
|
|
$ wayvncctl set-output --help
|
|
|
|
Usage: wayvncctl [options] set-output [params]
|
2022-11-05 13:53:17 +00:00
|
|
|
|
2022-11-06 02:42:24 +00:00
|
|
|
Switch the actively captured output
|
2022-11-05 13:53:17 +00:00
|
|
|
|
|
|
|
Parameters:
|
2022-11-06 02:42:24 +00:00
|
|
|
--switch-to=...
|
|
|
|
The specific output name to capture
|
|
|
|
|
|
|
|
--cycle=...
|
|
|
|
Either "next" or "prev"
|
|
|
|
|
|
|
|
Run 'wayvncctl --help' for allowed options
|
2022-10-31 07:22:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Cycle to the next active output:
|
|
|
|
|
|
|
|
```
|
2022-11-06 02:42:24 +00:00
|
|
|
$ wayvncctl set-output --cycle=next
|
|
|
|
```
|
|
|
|
|
|
|
|
Get json-formatted version information:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ wayvncctl --json version
|
|
|
|
{"wayvnc":"v0.5.0","neatvnc":"v0.5.1","aml":"v0.2.2"}
|
2022-10-31 07:22:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# ENVIRONMENT
|
|
|
|
|
|
|
|
The following environment variables have an effect on wayvncctl:
|
|
|
|
|
|
|
|
_XDG_RUNTIME_DIR_
|
|
|
|
Specifies the default location for the wayvncctl control socket.
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
*wayvnc(1)*
|