bismuth icon indicating copy to clipboard operation
bismuth copied to clipboard

[FEATURE]: Warp mouse when selecting another window

Open ngoonee opened this issue 2 years ago • 3 comments

Summary

Currently, window selection doesn't involve any warping of mouse position. This is fine for single-monitor use, but a hassle for multi-monitor use because part of the benefit of tiling is being faster to switch between screens, and having to move the mouse pointer over reduces that benefit. This also works oddly if focus-follows-mouse is used.

A clear and concise description of what you want to happen

Either:

  1. When a window is focused, warp the mouse to the center of the window (any window)
  2. When focus moves to a different screen, warp the mouse to the center of the screen

Both would help (configurable option would be good as well so this doesn't disrupt single-monitor users, though I believe number 1 would be helpful to everyone

A clear and concise description of any alternative solutions or features you've considered.

No response

Additional info

Some discussion on a python script for this was available here - https://www.reddit.com/r/kde/comments/q2grrp/mouse_auto_follows_focused_window_python/

ngoonee avatar Jul 22 '22 01:07 ngoonee

Am I right in thinking that the linked Python script wouldn't work on Wayland? It references Xlib.

willthong avatar Aug 04 '22 08:08 willthong

Yes, it would not work on Wayland, unfortunately.

ngoonee avatar Aug 04 '22 08:08 ngoonee

What I'd like is to warp the mouse only when a shortcut changes the focus - windows, screen or desktop focus

dzervas avatar Jan 10 '23 01:01 dzervas