25

In Windows, it is possible to set pressing Ctrl to display the current location of the mouse pointer, as per this tutorial.

Is there a way of setting a key or key combination to perform the same action in Ubuntu? Note, this is the opposite of turning this function off, as detailed at How do I turn off "show mouse" when I press Ctrl?.

Tangiest
  • 353

7 Answers7

21

GNOME based environments (including default Ubuntu)

Open Terminal and run the following command

gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true

Now if you press ctrl the pointer should be highlighted.

KDE

In KDE, go to System Settings -> Desktop Effects -> Track Mouse. Click on the cog icon beside that, and set ctrl as the modifier key.

pomsky
  • 70,557
14

It is possible to find this option in the GNOME Tweaks. Just go to 'Keyboard & Mouse' -> 'Pointer Location' and turn it on/off.

pomsky
  • 70,557
Gujche
  • 321
9

In 20.04, this is a slightly different location now for gsettings to work with.

In 20.04, this is the org.gnome.desktop.interface locate-pointer object. So:

gsettings set org.gnome.desktop.interface locate-pointer true
Thomas Ward
  • 78,878
4

In gnome ubuntu 24.04.1 LTS:

Settings > Accessibility > Point and Clicking > Locate Pointer
2

In 20.04, for those who wanted a feature more similar to macOS's one, there's now Jiggle which is a Gnome Shell extension that enlarges your cursor when shaking the mouse.

Once installed, the extension can be configured using GNOME Extensions or GNOME Tweaks.

GitHub page

Filbuntu
  • 13,891
Andrei
  • 46
1

If you prefer a graphical way in Ubuntu 20.04 and later, you can go to Settings → Universal Access → toggle Locate pointer on in the Pointing & Clicking section.

enter image description here

0

For those using Ubuntu 18.04:

Enable it with Gnome Tweak tools or use the command:

gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer true

Then use Fn+Ctrl (not just Ctrl).

Eliah Kagan
  • 119,640
Serge P
  • 101