How do I highlight my mouse pointer while screen recording?
There is no large, colored, or animated mouse cursor by default.
To show the mouse position there is a gsetting key to allow showing the cursor position with orange circles upon pressing and releasing the Ctrl key:
The key is located in org.gnome.desktop.interface locate-pointer
accessible through dconf-editor as shown above or in a terminal with
gsettings set org.gnome.desktop.interface locate-pointer true
Highlight Pointer Using Cursor Themes
I recently wanted to do this as well. I ended up at this answer which had some broken links and left me still in search of themes that someone else had surely created. I found one I liked. Here's an animated GIF of what I ended up with and how I got it working.
The end result
Finding a cursor theme
When I realized that this could be accomplished with a cursor theme (duh!), I went in search of some themes. I eventually ended up here, and after looking through a number of pages of different cursors, I settled on this one. To download, click the files tab and then download the .tar.gz file for the cursor theme.
Installing and enabling the cursor for screencasting
With the cursor theme downloaded, I got to work on installing it.
-
The file I downloaded contains multiple themes (each a different color halo) so I first extracted the contents to a temp folder
tar -xzf /path/to/download/160115-bDMZT.tar.gz -C /tmp/
-
Then I copied the cyan theme to the proper directory, renaming it
screencast
sudo cp -r /tmp/bDMZT/abDMZ/ /usr/share/icons/screencast/
-
Before enabling the new cursor theme, I made note of the current theme.
OLD_THEME=$(gsettings get org.gnome.desktop.interface cursor-theme) && echo $OLD_THEME
-
At this point, all that was left to do was to enable the theme.
gsettings set org.gnome.desktop.interface cursor-theme screencast
If the new theme is active for some applications but not others or if it does not appear to be active at all, you may need to completely terminate all instances of the applications for which it is not active or log off entirely and log back in.
Changing back to the default cursor
Once you're finished your screencast, you may want to switch back to your previous theme (the system default is DMZ-White
). To do this, run:
gsettings set org.gnome.desktop.interface cursor-theme "$OLD_THEME"
Extra 2-cents
There are also programs available to show mouse clicks and key presses which can be really helpful in screencasts.