Manual hide the mouse cursor in full-screen

Original forum link
https://forum.qubes-os.org/t/23477
Original poster
ludovic
Created at
2024-01-04 22:18:37
Posts count
2
Likes count
10

When I watch a movie in full-screen mode, I want to hide the mouse cursor. But by default it is visible with Qubes-OS. With the below procedure you will hide the mouse cursor with the Alt+F12 keyboard shortcut with the help of the unclutter command.

In dom0: - install the unclutter package : sudo qubes-dom0-update unclutter - create the toggle-unclutter.sh shell script :

mkdir $HOME/bin
cat << 'EOF' | tee $HOME/bin/toggle-unclutter.sh
#! /bin/sh
if pgrep unclutter &> /dev/null 2>&1
then
  killall unclutter
else
  unclutter -idle 1 &
fi
EOF
chmod +x $HOME/bin/toggle-unclutter.sh
- add a keyboard shortcut to launch this script for hide/show the mouse cursor - for xfce : System Tools / Keyboard, Application Shortcuts, Add : browse to the above script -> choose a shortcut (for example Alt-F12)

The first Alt-F12 hides the cursor, the second Alt-F12 shows the cursor.

Credits : vecna13 from the 2676 issue. In this issue you will find other solutions and some security concerns.

The shortcut added in the ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml file.