Hi audiophilelistener
... Can I add it in the HideMouse script?
Yes.
I just want to clarify something. The files in ~/.X.d are not scripts. They contain commands that get executed line by
line by ~/.xsession. A command can not be executed until the previous command returns control to ~/.xsession.
Commands like HideMouse and firefox
block and will not return control to ~/.xsession until they exit.
That is why you append an
& to the end of the line. This starts the command and immediately returns control to ~/.xsession.
Commands like echo -e '\033[9;0]'
do not block and do not get an
& appended to them.
Commands like sleep 1
do block because they are supposed to, and do not get an
& appended to them.
So you could place all of your commands in one file something like this:
HideMouse &
sleep 1
echo h > /tmp/HideMouse
echo -e '\033[9;0]'
firefox --kiosk https://www.google.com &