Ask Your Question

Is it possible to make the mouse cursor dissapear when typing?

asked 2015-07-31 10:34:22 -0500

florian gravatar image

updated 2015-08-21 20:47:48 -0500

mether gravatar image

I would like to fade out my mouse cursor when I am typing on the keyboard. Is that possible?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-31 17:47:25 -0500

terrycloth gravatar image

updated 2015-08-01 02:06:16 -0500

The terminal application Unclutter should do the trick, but how well it works for you may depend on your window manager.

First you install it with DNF (Unclutter runs in the terminal, and I don't think terminal applications usually show up in the the Software Center for some reason).

sudo dnf install unclutter

Then you can tell unclutter to hide the mouse when there's a keystroke.

unclutter -keystroke

Try that out. This is the closest solution to what you're asking, but it's a little inconsistent for some people, or in some apps. If it works, you're good. If not, Unclutter can also hide your mouse after it's been idle for a certain amount of time. This way tends to work more consistently, I think. You can set the timeout to a few seconds, which should make the mouse disappear by the time you've moved your hand from the mouse to the keyboard to start typing.

unclutter -idle X

...will set the timeout to X seconds. Ostensibly. In my experience, it actually takes a couple seconds extra for Unclutter to decide that your mouse has gone idle, so I might set it to 1, or 0.5... Or longer, if you want. Try it and see how you like it.

For other options, see the manpage: man unclutter

Last point: You'll notice that unclutter does not run in the background. The command prompt doesn't display again. But it will if you add an ampersand to the end of the commmand: unclutter -idle 1 & This way unclutter will keep running even if you close the terminal.

To make sure this persists after you reboot, add the unclutter command to your startup applications.

edit flag offensive delete link more


I've installed unclutter but its behaviour is very specific: it hides the mouse in a terminal window. Only there and nowhere else. I am more looking for a general hide of the mouse cursor in gnome. No matter what application is currently running or the active one. But thanks anyway.

florian gravatar imageflorian ( 2015-07-31 22:39:59 -0500 )edit

What? I'm using GNOME too, and Unclutter manages to hide the mouse in Firefox, Atom, KeePassX, Transmission, KRename, GEdit... Pretty much every application I've tried it with. Unclutter always seems to take an extra couple seconds longer to hide the mouse than the idle time you designate. Are you sure you're waiting long enough? It should only be an extra couple seconds, but I guess it's possible to miss it.

terrycloth gravatar imageterrycloth ( 2015-08-01 01:56:46 -0500 )edit

Oh, and unless you added the ampersand & at the end of the command, you'd have to keep the terminal open while testing your mouse in other applications.

terrycloth gravatar imageterrycloth ( 2015-08-01 02:03:32 -0500 )edit

Question Tools



Asked: 2015-07-31 10:34:22 -0500

Seen: 1,156 times

Last updated: Aug 01 '15