Auto-Hide Your Mouse Pointer When Idle With “Unclutter”

By | 2008/07/07

There was some recent discussion on one of the local User Group lists this week about “What is your favorite underdog OSS application?”  This discussion brought out quite a few of the little never-heard-of applications, yet many of them have proven to be really useful!  If you’ve never spent an hour or two poking around the less-popular section of the repositories you’ll be surprised what you find in there!

Auto-Hide Your Mouse Pointer with Unclutter

The purpose of Unclutter is very simply.  From the man page:

unclutter removes the cursor image from the screen so that it does not obstruct the area you are looking at after it has not moved for a given time.

Not anything too complicated about that.  Now lets get it installed!  Installation can be done by issuing the following command or clicking the link.

sudo aptitude install unclutter

Now that we have it installed the one last thing we’ll need to do is configure it and have it automagically start at boot time.  We’ll do this by way of “System > Preferences > Sessions”

adding 'unclutter' to the sessions menu

The “sessions” for your Desktop controls what applications and services are auto-started when you login.  This way unclutter will start up automatically.  You’ll want to click “Add” and populate the three fields.  For name “Unclutter” should be fine.  For the command field you’ll want something like:

unclutter -display :0.0 -idle 5

And you can populate the comment with whatever you like.  I used “Remove the cursor image after mouse inactivity.”

You can find more options in the man page (man unclutter), but this should basically hide the mouse pointer after 5 seconds of inactivity on your default display.

13 thoughts on “Auto-Hide Your Mouse Pointer When Idle With “Unclutter”

  1. Mackenzie

    Does the pointer always come back properly? I’ve never used this, but I know the pointer used to disappear while I was idle in Firefox, and then it’d refuse to come back. I started using Compiz’s water plugin to find it again.

  2. Flow

    Wow that was right what I was looking for. Always wondered if I could make the pointer disappear when typing like it was in Windows XP some years ago.
    Just a nice option: -keystroke makes the pointer disappear only when you type something.

  3. Lane Lester

    I’d like to use this in Xubuntu, but the Sessions thing in XFCE doesn’t have the Add feature.

  4. Lane Lester

    Oops! I typed too soon. There’s a Settings gadget called “Autostarted Applications” that seems to do the job.

  5. anonymous

    works perfectly, thanks a lot!

  6. GuyS

    Little things that make me happy. Thanks for this. It works in all most windows (but not, for example, in this very dialog in Firefox as I’m typing :-\ But it mostly works and that’s an improvement.

  7. Frank

    Thanks for this wonderful entry – I was just looking for exactly this! Perfectly fits awesome as my window manager 🙂

  8. Stoffe

    Only needs “unclutter” as the command in all common cases, 5 is the default according to the man page.

    Great little app!

  9. Jordan Clark

    Perfect! I use Ubuntu for projector displays. Nice to not have the pointer in a conspicuous spot! 🙄

  10. Ruben

    Thanks Christer.
    The tutorials like this one are my first reason why I like Ubuntu and adore the community!
    This is all good.

  11. bamdad

    just remember to switch it off when using sdl apps (zsnes etc.) because it fscks up the pointer movement.. 😉

Comments are closed.