[GH-ISSUE #352] Karabiner interferes with lan-mouse #182

Open
opened 2026-05-05 22:12:59 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Richie765 on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/352

When using my Mac keyboard and mouse to control a remote Linux machine, I’ve noticed that my local keyboard modifications (via Karabiner-Elements) are being applied to the remote session. I have several key remappings that are convenient for my Mac workflow but conflict with the keybindings in my Linux environment.

Similarly, I use Fluor, which changes the behavior of function keys based on the active application. Unfortunately, these modified keycodes are also being sent to the remote Linux machine, leading to unexpected results.

Is it possible to capture and transmit the raw, unmodified keycodes—bypassing Karabiner-Elements or Fluor—when forwarding input to the Linux machine?

Originally created by @Richie765 on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/352 When using my Mac keyboard and mouse to control a remote Linux machine, I’ve noticed that my local keyboard modifications (via Karabiner-Elements) are being applied to the remote session. I have several key remappings that are convenient for my Mac workflow but conflict with the keybindings in my Linux environment. Similarly, I use Fluor, which changes the behavior of function keys based on the active application. Unfortunately, these modified keycodes are also being sent to the remote Linux machine, leading to unexpected results. Is it possible to capture and transmit the raw, unmodified keycodes—bypassing Karabiner-Elements or Fluor—when forwarding input to the Linux machine?
Author
Owner

@feschber commented on GitHub (Nov 13, 2025):

Not sure if this is possible. But could you try starting lan-mouse before Karabiner?

<!-- gh-comment-id:3528415079 --> @feschber commented on GitHub (Nov 13, 2025): Not sure if this is possible. But could you try starting lan-mouse _before_ Karabiner?
Author
Owner

@feschber commented on GitHub (Nov 15, 2025):

Related: #320

<!-- gh-comment-id:3536233474 --> @feschber commented on GitHub (Nov 15, 2025): Related: #320
Author
Owner

@Richie765 commented on GitHub (Nov 15, 2025):

Not sure if this is possible. But could you try starting lan-mouse before Karabiner?

I tried that and it doesn't solve the problem.

A possible solution could be if Karabiner profile could be changed automatically when the mouse moves to the other computer. I think this is possible if lan-mouse allows to execute an external command. Anyways for now I am connecting kbd/mouse directly as this seems to be the only way for now. Thanks anyway!

<!-- gh-comment-id:3536328955 --> @Richie765 commented on GitHub (Nov 15, 2025): > Not sure if this is possible. But could you try starting lan-mouse _before_ Karabiner? I tried that and it doesn't solve the problem. A possible solution could be if Karabiner profile could be changed automatically when the mouse moves to the other computer. I think this is possible if lan-mouse allows to execute an external command. Anyways for now I am connecting kbd/mouse directly as this seems to be the only way for now. Thanks anyway!
Author
Owner

@emsi commented on GitHub (Jan 9, 2026):

I tried that and it doesn't solve the problem.

It's peculiar that on the receiving end lan-mouse is bypassing karabiner where in reality it is expected that it obeyed, while on the sending side lan-mouse receives event with karabiner modifications. A completely reverse scenario would be probably more appreciated :)

One proposed solution to the latter (your case) would be to modify karabiner setting to ignore (exclude) lan-mouse, much like it's custom to exclude teminal apps like iTerm2 or other terminal apps.

<!-- gh-comment-id:3730149835 --> @emsi commented on GitHub (Jan 9, 2026): > I tried that and it doesn't solve the problem. It's peculiar that on the receiving end lan-mouse is bypassing karabiner where in reality it is expected that it obeyed, while on the sending side lan-mouse receives event with karabiner modifications. A completely reverse scenario would be probably more appreciated :) One proposed solution to the latter (your case) would be to modify karabiner setting to ignore (exclude) lan-mouse, much like it's custom to exclude teminal apps like iTerm2 or other terminal apps.
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#182
No description provided.