Auto Disguise Mouse Pointer Utilizing Unclutter After A Sure time


Get real time updates directly on you device, subscribe now.

The kiosk gadgets runs a single utility 24/7 with none consumer interplay. They do not even want keyboard or mouse more often than not. One frequent downside in kiosk gadgets is the mouse pointer. When an internet app is working in Kiosk mode, the mouse pointer might distract the customers or block the world the consumer taking a look at. Even in the event you take away the mouse, you’ll nonetheless see the mouse cursor. Fortunately, we will auto disguise mouse pointer utilizing Unclutter utility after a sure time period when there isn’t a mouse motion in Linux desktops.

Unclutter completely runs within the background of an X11 session. It screens the mouse pointer place each few seconds. When it finds the mouse will not be moved or no buttons on the mouse are pressed or the cursor will not be within the root window, it hides the idle cursor picture and prevents the cursor from getting in the way in which. It is extremely helpful in conditions (E.g. tiling window managers) the place you do not use mouse usually. To convey again the mouse pointer, merely transfer the mouse or press any mouse button.

How Unclutter works

Technically talking, the unclutter app hides the mouse pointer by making a small sub-window as a toddler of the window the cursor is in. The brand new window installs a cursor of dimension 1×1 however a masks of all 0, i.e. an invisible cursor. As soon as created, this system waits for the pointer to go away the window after which destroys it, restoring the unique state of affairs. Button occasions are handed transparently by way of to the mum or dad window. They are going to often trigger the cursor to reappear as a result of an energetic seize will probably be made by this system whereas the button is down, so the pointer will apparently go away the window, although its x, y place does not change.

Set up Unclutter in Linux

Unclutter utility is on the market within the default repositories of many Linux and Unix working programs.

To put in Unclutter in Arch Linux and its variants like Manjaro Linux, run:

$ sudo pacman -S unclutter

On Debian, Ubuntu, Linux Mint:

$ sudo apt set up unclutter

On openSUSE:

$ sudo zypper set up unclutter

Set up unclutter-xfixes

Unclutter could be very outdated and it has not been up to date for a very long time. When you do not need to use it, you may attempt its fork Unclutter-xfixes.

Unclutter-xfixes is the rewrite model of the unique Unclutter utility. Not like its predecessor, it does not use faux home windows or pointer grabbing and therefore causes much less issues with window managers and/or functions.

To put in unclutter-xfixes on Arch Linux and Manjaro Linux, merely run:

$ sudo pacman -S unclutter

On Fedora, you may set up unclutter-xfixes through copr repository:

$ sudo dnf copr allow nbeernink/unclutter-xfixes
$ sudo dnf set up unclutter-xfixes

unclutter-xfixes can also be accessible within the AUR, so you may set up it utilizing any AUR helper applications like Yay.

$ yay -S unclutter-xfixes-git

On FreeBSD:

# pkg set up unclutter-xfixes

On different Linux distributions, you may compile and set up it from supply. Ensure you have put in the improvement instruments in your Linux field.

To put in Unclutterpxfixes from supply, run the next instructions one after the other:

$ git clone
$ cd unclutter-xfixes
$ make
$ sudo make set up

Auto Disguise Mouse Pointer Utilizing Unclutter After A Sure Time In Linux

To auto disguise the mouse pointer or cursor after a particular time interval, for instance 10 seconds, run:

$ unclutter -idle 10

Or, you may run it within the background like beneath:

$ unclutter -idle 10 &

If the mouse cursor has not moved for a given time i.e. 10 seconds, the unclutter app will auto disguise the cursor from the display screen. When you do not specify the timeout worth, it is going to auto disguise the cursor after 5 seconds by default.

To convey it again, merely transfer the mouse or press any mouse buttons.

Autostart Unclutter on system reboot

As a substitute of manually working the Unclutter on each reboot, simply add the above command to your startup.

For instance, I added the next line in my ~/.bashrc file:

unclutter &

For extra particulars, refer the person pages.

$ man unclutter

Useful resource:

Featured picture by Liviu C. on Unsplash.

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More