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
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.