mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-16 09:40:54 +03:00
update example config + add help message for releasing mouse (#7)
This commit is contained in:
committed by
GitHub
parent
13a688a0c1
commit
0feb1350a9
24
config.toml
24
config.toml
@@ -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"
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user