[GH-ISSUE #292] Reporting some issues #150

Closed
opened 2026-05-05 22:11:39 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @juangiordana on GitHub (May 10, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/292

I'm on NixOS usinglan-mouse 0.10.0 from <nixpkgs> on Hyprland.

  • I managed to make it work "manually" between my 2 computers with the GUI as well as the CLI,
# laptop
$ lan-mouse -f cli
lan-moiuse> connect left desktop
lan-moiuse> activate 0

# desktop
$ lan-mouse -f cli
lan-moiuse> connect right laptop
lan-moiuse> activate 0
  • Didn't receive the fingerprints authorization request though.

  • I couldn't find a way to persist the configurations. Spent hours on this one without luck (next item might be the culprit).

  • I've noticed there's a double pass on the startup process for reading the configuration file and setting the release_bind options:

$ lan-mouse -f cli                                   
[2025-05-10T09:51:39Z INFO  lan_mouse::config] using config: "/home/juan/.config/lan-mouse/config.toml"    # <- 1st attempt
[2025-05-10T09:51:39Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]  # <- 1st attempt
[2025-05-10T09:51:39Z INFO  lan_mouse::config] using config: "/home/juan/.config/lan-mouse/config.toml"    # <- 2nd attempt
[2025-05-10T09:51:39Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]  # <- 2nd attempt
[2025-05-10T09:51:39Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2025-05-10T09:51:39Z INFO  lan_mouse::server::emulation_task] creating input emulation...
[2025-05-10T09:51:39Z INFO  input_emulation] using emulation backend: wlroots
[2025-05-10T09:51:39Z WARN  input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found``
[2025-05-10T09:51:39Z INFO  input_capture] using capture backend: layer-shell
# Ctrl^D
lan-mouse > emulation status: Enabled
lan-mouse > capture status: Enabled
lan-mouse > changed port to 4242
lan-mouse > [2025-05-10T09:51:40Z INFO  lan_mouse::server] terminating service
[2025-05-10T09:51:40Z INFO  lan_mouse] service exited!
  • The README file seems to be out of date, I can send a PR if you need a hand with this.

Had to use lan-mouse -f cli in order to get into the CLI: lan-mouse cli > lan-mouse -f cli

Also, this doesn't seem to work

❯ lan-mouse cli connect help
error: unexpected argument 'cli' found
Usage: lan-mouse [OPTIONS]
For more information, try '--help'.

❯ lan-mouse -f cli connect help
error: unexpected argument 'connect' found
Usage: lan-mouse [OPTIONS]
For more information, try '--help'.

Finally, I ended up confused about how to create the configuration files:

  • Should both hosts contain two []client[] sections?
  • Or is it that I should add one client per host? (considering a 2 hosts setup)
  • I've tried several combinations of this but didn't get any luck

Thanks for your work and I hope this helps!

Originally created by @juangiordana on GitHub (May 10, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/292 I'm on NixOS using`lan-mouse 0.10.0` from `<nixpkgs>` on Hyprland. - I managed to make it work "manually" between my 2 computers with the GUI as well as the CLI, ```console # laptop $ lan-mouse -f cli lan-moiuse> connect left desktop lan-moiuse> activate 0 # desktop $ lan-mouse -f cli lan-moiuse> connect right laptop lan-moiuse> activate 0 ``` - Didn't receive the fingerprints authorization request though. - I couldn't find a way to **persist the configurations**. Spent hours on this one without luck (next item might be the culprit). - I've noticed there's a double pass on the startup process for reading the configuration file and setting the `release_bind` options: ``` $ lan-mouse -f cli [2025-05-10T09:51:39Z INFO lan_mouse::config] using config: "/home/juan/.config/lan-mouse/config.toml" # <- 1st attempt [2025-05-10T09:51:39Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] # <- 1st attempt [2025-05-10T09:51:39Z INFO lan_mouse::config] using config: "/home/juan/.config/lan-mouse/config.toml" # <- 2nd attempt [2025-05-10T09:51:39Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] # <- 2nd attempt [2025-05-10T09:51:39Z INFO lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse [2025-05-10T09:51:39Z INFO lan_mouse::server::emulation_task] creating input emulation... [2025-05-10T09:51:39Z INFO input_emulation] using emulation backend: wlroots [2025-05-10T09:51:39Z WARN input_capture] input-capture-portal input capture backend unavailable: error creating input-capture-portal backend: `xdg-desktop-portal: `A portal frontend implementing `org.freedesktop.portal.InputCapture` was not found`` [2025-05-10T09:51:39Z INFO input_capture] using capture backend: layer-shell # Ctrl^D lan-mouse > emulation status: Enabled lan-mouse > capture status: Enabled lan-mouse > changed port to 4242 lan-mouse > [2025-05-10T09:51:40Z INFO lan_mouse::server] terminating service [2025-05-10T09:51:40Z INFO lan_mouse] service exited! ``` - The README file seems to be out of date, I can send a PR if you need a hand with this. Had to use `lan-mouse -f cli` in order to get into the CLI: `lan-mouse cli` > `lan-mouse -f cli` Also, this doesn't seem to work ``` ❯ lan-mouse cli connect help error: unexpected argument 'cli' found Usage: lan-mouse [OPTIONS] For more information, try '--help'. ❯ lan-mouse -f cli connect help error: unexpected argument 'connect' found Usage: lan-mouse [OPTIONS] For more information, try '--help'. ``` --- Finally, I ended up confused about how to create the configuration files: - Should both hosts contain two `[]client[]` sections? - Or is it that I should add one client per host? (considering a 2 hosts setup) - I've tried several combinations of this but didn't get any luck Thanks for your work and I hope this helps!
Author
Owner

@feschber commented on GitHub (May 10, 2025):

The encryption stuff is not yet releases in a point version - you have to use the pre release version for now.

As for persisting the configuration there is this branch: https://github.com/feschber/lan-mouse/compare/main...save-config

Unfortunately I dont have a lot of time to work on lan-mouse atm.

<!-- gh-comment-id:2869154376 --> @feschber commented on GitHub (May 10, 2025): The encryption stuff is not yet releases in a point version - you have to use the [pre release version](https://github.com/feschber/lan-mouse/releases/tag/latest) for now. As for persisting the configuration there is this branch: https://github.com/feschber/lan-mouse/compare/main...save-config Unfortunately I dont have a lot of time to work on lan-mouse atm.
Author
Owner

@feschber commented on GitHub (May 10, 2025):

Should both hosts contain two []client[] sections?

for each client you want to have a

[[clients]]
hostname = "thorium"
ips = []
position = "right"
activate_on_startup = true
enter_hook = "echo entered thorium"

entry.
This has also changed recently

<!-- gh-comment-id:2869155208 --> @feschber commented on GitHub (May 10, 2025): > Should both hosts contain two []client[] sections? for each client you want to have a ```toml [[clients]] hostname = "thorium" ips = [] position = "right" activate_on_startup = true enter_hook = "echo entered thorium" ``` entry. This has also changed [recently](https://github.com/feschber/lan-mouse/commit/532383ef65ed0544d8e3089f3e5b1acb1d7a8b30)
Author
Owner

@juangiordana commented on GitHub (May 10, 2025):

Thanks for replying Ferdinand,

I went through the issues and got it to work properly. Next time I'll make sure to check the tagged version's docs :)

<!-- gh-comment-id:2869217892 --> @juangiordana commented on GitHub (May 10, 2025): Thanks for replying Ferdinand, I went through the issues and got it to work properly. Next time I'll make sure to check the [tagged version's docs](https://github.com/feschber/lan-mouse/tree/v0.10.0) :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#150
No description provided.