mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-13 18:41:28 +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
|
port = 42069
|
||||||
backend = "wlroots"
|
backend = "wlroots"
|
||||||
|
|
||||||
# [right]
|
# example configuration
|
||||||
# host_name = "localhost"
|
|
||||||
# port = 42068
|
|
||||||
|
|
||||||
[left]
|
# define a client on the right side with host name "iridium"
|
||||||
host_name = "Osmium"
|
[right]
|
||||||
ip = "192.168.178.114"
|
# hostname
|
||||||
|
host_name = "iridium"
|
||||||
|
# optional ip address
|
||||||
|
ip = "192.168.178.141"
|
||||||
|
# optional port (defaults to 42069)
|
||||||
port = 42069
|
port = 42069
|
||||||
|
|
||||||
# [client.right]
|
# define a client on the left side with ip 192.168.178.189
|
||||||
# host_name = "Osmium"
|
#
|
||||||
# port = 42069
|
# 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
|
// start receiving client connection requests
|
||||||
let (request_server, request_thread) = request::Server::listen(port).unwrap();
|
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
|
// start producing and consuming events
|
||||||
let event_producer = match producer::start(produce_tx, client_manager.get_clients(), request_server) {
|
let event_producer = match producer::start(produce_tx, client_manager.get_clients(), request_server) {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user