codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Extension request: banish mouse pointer #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Unclutter and hhp are both fine programs and hiding the pointer after
inactivity is certainly nice and worthwhile. However, they do not affect
the position of the cursor - it is easy to inadvertently and distractingly
activate the cursor or for it to even get in the way.

So it would be a good addition to have an extension which would 'banish'
the mouse pointer somewhere like the lower right hand corner; it could be
integrated with the hook system. For example, I liked to have the mouse
banished on window changes while using Stumpwm/RP.

Original issue reported on code.google.com by gwe...@gmail.com on 22 Oct 2007 at 4:12

GoogleCodeExporter commented 8 years ago
Other useful commands to copy from
<http://www.nongnu.org/ratpoison/doc/Other-Commands.html#Other%20Commands> 
would include:

'ratrelwarp x y     Command
Warp the rat to the specified location relative to the current rat position.

ratwarp x y     Command
Warp the rat to the specified absolute location.

ratclick button     Command
click the rat. button is either 1, 2, or 3. button defaults to button 1.

rathold state button    Command
click the rat button down if state is down or release the button if state is 
up.'

Original comment by gwe...@gmail.com on 22 Oct 2007 at 9:54

GoogleCodeExporter commented 8 years ago
For these, Warp.hs is a good starting point.

Original comment by gwe...@gmail.com on 22 Oct 2007 at 10:05

GoogleCodeExporter commented 8 years ago
One final feature that could be implemented in the same general area: 'warp'.

"warp state     Command
Toggle rat warping. By default ratpoison saves the position of the rat when 
leaving a
window and when the user returns to the window the rat's position is restored. 
This
can be counter-intuitive, so you can toggle it with this command. state can be 
on or
off."

In other words, if you set warp on, then upon focus shifting to a window, the 
window
manager will move the pointer to the last recorded position regardless of where 
it
was when you shifted focus. This should be an XMonadContrib module.

I found it handy for copy and paste. My mouse would be somewhere in the top 
half of
the screen, I'd be editing in Emacs in the bottom, and warp meant the mouse went
where it should be. A small but comfortable feature.

Original comment by gwe...@gmail.com on 22 Oct 2007 at 10:14

GoogleCodeExporter commented 8 years ago

Original comment by SpencerJ...@gmail.com on 22 Oct 2007 at 10:26

GoogleCodeExporter commented 8 years ago
If someone is interested, write a mouse banishing extension.

Original comment by don...@gmail.com on 10 Dec 2007 at 12:20