Bismuth-Forge / bismuth

KDE Plasma add-on, that tiles your windows automatically and lets you manage them via keyboard, similarly to i3, Sway or dwm.
https://bismuth-forge.github.io/bismuth/
Other
2.4k stars 91 forks source link

[FEATURE]: Warp mouse when selecting another window #399

Open ngoonee opened 2 years ago

ngoonee commented 2 years ago

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/

willthong commented 2 years ago

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

ngoonee commented 2 years ago

Yes, it would not work on Wayland, unfortunately.

dzervas commented 1 year ago

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