Re: The adventures of an Windows Knight at the Wild-Lands of Linux
Reply #64 –
ersi wants to move the mouse pointer by means of keyboard.
Hard to do in Linux. Windows apparently has a tool for it http://www.computerhope.com/issues/ch000542.htm
Specifically, I sometimes want to centre the pointer to the focused window by hitting a key on the keyboard. That's it.
When you cycle to the wanted window by keybind, but your mouse pointer is elsewhere and you have "focus follows mouse" switched on, then the selected window will lose focus. To keep the focus in these cirumstances, the mouse pointer must be centred to the window. Since cycling occurred by keybind, it would be convenient to centre the mouse pointer also by keybind, not by reaching for mouse.
Searching the net for a solution, I found that there's a Sawfish extension that does it http://sawfish.wikia.com/wiki/Move-resize-by-key-cursor "If mouse is not used for doing move/resize, the cursor will be placed in a good position for moving/resizing using keyboard."
Except that I have no plans to use Sawfish. I also found a tool called xwit but this apparently doesn't distinguish windows by focused versus unfocused to move the mouse pointer. It can only select/focus the window that is currently under the pointer or move the pointer relative to windows identified by other features than focus.
Looks like this minimal move for the mouse pointer by keybinds would be something for window managers in general to consider, specify and implement. For example it would be cool to have "focus mouse pointer to the selected window" as an option in window cycling (Alt-Tab).