How can I set the self timer to 5sec instead of 10 by default?
You can use a simple script to manage a 10 sec delay. The shoot.lua script in the /CHDK/SCRIPTS/4pack/Lua directory is one example.
For more detailed information, it would help if you identify what camera you have.