Results 1 to 5 of 5

Thread: How to auto-hide mouse cursor while typing?

  1. #1
    Join Date
    Oct 2007
    Location
    hk
    Beans
    706
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    How to auto-hide mouse cursor while typing?

    How to auto-hide mouse cursor while typing?
    Ubuntu 7.10 on P4 1.8G and PIII 933mHz

  2. #2
    Join Date
    Apr 2006
    Location
    Dallas, TX
    Beans
    1,359
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to auto-hide mouse cursor while typing?

    I don't know of a global way to set this, but certain applications may support it. For instance, a quick search brought up that this is possible to set in VIM.

    ...actually, I found this package called "unclutter" (in the repos) that supposedly does this. You can read about it here:

    http://times.debian.net/1097

    http://packages.ubuntu.com/search?keywords=unclutter

    I've never used it though...

  3. #3
    Join Date
    Dec 2007
    Beans
    55

    Re: How to auto-hide mouse cursor while typing?

    I don't think Unclutter hides the mouse pointer when typing, just when idle.

    KDE4 apps hide the cursor while typing, which is nice, but that doesn't help those using Gnome apps, I'm afraid.

  4. #4
    Join Date
    Sep 2010
    Location
    Cambridgeshire, England
    Beans
    14
    Distro
    Ubuntu

    Re: How to auto-hide mouse cursor while typing?

    I tried unclutter and got it running in the background as a start up app, but it kept crashing. It only has one error message, 'someone created a sub-window to my sub-window! giving up', but I got it every time I opened an new window. Even if I just ran it manually on the command line, it still crashed.
    I'm using wmii2 as the window manager, so this might be something to do with it, but unclutter doesn't work for me.

    For the record, wmii2 is pretty good if you want that style of WM, but it takes some getting used to - be sure to read the intro on the website.

    [Update]
    I've played around with unclutter and got it working well enough, but it's still really brittle. I think a lot of it comes down to my own incompetency. I really don't fully understand exactly how X11 works.

    If you want to try unclutter, do sudo apt-get install unclutter, then add the line:

    unclutter -root -idle 2

    to the end of .bashrc in Ubuntu 10.4. Change the 2 to the number of seconds you'd like unclutter to wait before it hides the cursor, I find 2 works fine. There is some way you can change the sensitivity for twitchy mouses if that's an issue, but I dunno how to do it.
    Last edited by carlsmith; September 19th, 2010 at 11:29 PM. Reason: Learnt a bit more...

  5. #5
    Join Date
    Nov 2009
    Beans
    4

    Re: How to auto-hide mouse cursor while typing?

    unclutter is very well but its does not work instantly in a web browser like it does inside a Linux application, it works instantly inside Linux app.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •