Thanks again. It works. It is great not having to worry about putting the Mini to sleep by accident.
Would it be possible to deactivate Fn+7 (Print Screen) as well? As a mac user, I am used to take screenshots using the standard mac keystrokes (command+shift+3 or command+shift+4) so Fn+7 is useless to me. Pressing it by mistake when I want to change the volume is a pain too.
I personally think it is not worth using Fn+1 for sleep and Fn+7 to take screenshots when the mac alternative keystrokes are better. Also, these keys do not exist on real Macs and so they make the Mini feel a bit unmaclike. But I understand other people might have a different opinion, so it would be good to be able to configure its behavior somehow.
One last thing just in case someone else decides to do this, and correct me if I am wrong, the line:
should be this instead:
(or just double click on the app in the Finder)
Also, I had to reboot for the changes to take effect.