update example config + add help message for releasing mouse (#7)

This commit is contained in:
Ferdinand Schober
2023-04-05 08:44:17 +02:00
committed by GitHub
parent 13a688a0c1
commit 0feb1350a9
2 changed files with 17 additions and 9 deletions

View File

@@ -1,15 +1,21 @@
# define port and backend of this instance
port = 42069
backend = "wlroots"
# [right]
# host_name = "localhost"
# port = 42068
# example configuration
[left]
host_name = "Osmium"
ip = "192.168.178.114"
# define a client on the right side with host name "iridium"
[right]
# hostname
host_name = "iridium"
# optional ip address
ip = "192.168.178.141"
# optional port (defaults to 42069)
port = 42069
# [client.right]
# host_name = "Osmium"
# port = 42069
# define a client on the left side with ip 192.168.178.189
#
# when an ip address is specified, it takes priority
# and host_name can be omitted
[left]
ip = "192.168.178.189"

View File

@@ -43,6 +43,8 @@ pub fn main() {
// start receiving client connection requests
let (request_server, request_thread) = request::Server::listen(port).unwrap();
println!("Press Ctrl+Alt+Shift+Super to release the mouse");
// start producing and consuming events
let event_producer = match producer::start(produce_tx, client_manager.get_clients(), request_server) {
Err(e) => {