lan-mouse icon indicating copy to clipboard operation
lan-mouse copied to clipboard

Feature: Add a keyboard shortcut to change to different screens

Open markmandel opened this issue 10 months ago • 2 comments

Reading around, there are requests for this buried in other requests (https://github.com/feschber/lan-mouse/issues/26#issuecomment-1832877166, https://github.com/feschber/lan-mouse/issues/139#issuecomment-2147995949) - but since I would really like this feature, I'm pulling it out into it's own issue so it doesn't get lost.

Basically, i want what Synergy does (and input-leap, etc): https://symless.com/synergy/help/add-a-hotkey-or-keyboard-shortcut-to-change-to-different-screens

Basically because I tend to do most navigation by keyboard, so switching to mouse just to move my mouse up the page to switch screens is cumbersome for me. Would be great to be able to press my own custom key combo, and have it switch to a different monitor.

markmandel avatar Feb 08 '25 18:02 markmandel

Fun workaround I figured I'd share! I'm using hyprland, but this just requires a keybinding and wlctrl.'

bind = CTRL ALT, Up, exec, wlrctl pointer move 0 -10000
bind = CTRL ALT, Down, exec, wlrctl pointer move 0 10000

Since the edge transition fires when the mouse goes to the edge, you can move it there with wlrctl.

It's not perfect, since your mouse is now at the top of your screen - but if you are using keyboard navigation anyway, it may not matter much to you.

markmandel avatar Feb 08 '25 18:02 markmandel

Yeah, this is something I definitely want to do at some point. The input capture portal currently does not allow for this directly so it would have to be a hack similar to what you are describing above (though it would hopefully work better when integrated with lan-mouse directly).

feschber avatar Feb 12 '25 13:02 feschber