From ecca9e6aa6b1f46bbd82a648f677c3b4f063ea69 Mon Sep 17 00:00:00 2001 From: luxick Date: Fri, 22 May 2020 12:05:22 +0200 Subject: [PATCH] Update README --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7aa7795..17bbe0f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # randopix ## Usage +### Server +The server is run with an inital mode. All settings can later be changed with the client. ``` randopix @@ -10,12 +12,34 @@ Usage: Options: -m, --mode=MODE The image source mode. Possible values: [foxes, inspiro, file] - -p, --path=PATH Path to a directory with images ('file' mode only) + -p, --path=PATH Path to a directory with images for the 'file' mode + -t, --timeout=TIMEOUT Seconds before the image is refreshed (default: 300) -w, --windowed Do not start in fullscreen mode -v, --verbose Show more information -h, --help Show this help ``` +### Client +The `pixctrl` client is used to issue commands to a running server. +Per default the client will try to connect to a server running on the same maschine. Use the `-s HOSTNAME` option to control a server over the network. +``` +pixctrl +Control utilitiy for randopix + +Usage: + pixctrl [options] COMMAND + +Commands: + + refresh Force image refresh now + timeout Set timeout in seconds before a new image is displayed + +Options: + -s, --server=SERVER Host running the randopix server (default: 127.0.0.1) + -p, --port=PORT Port to connect to the randopix server (default: 5555) + -h, --help Show this help + +``` ## Build Install the [Nim Compiler](https://nim-lang.org/install.html).