How to lock screen automatically after 35 mins in KDE 3.5.x

by plainspeak

     sleep 2100;
     dcop kdesktop KScreensaverIface lock;

Put the above file somewhere. Create a Keyboard shortcut to this script and every time you unlock your session, type the shortcut, and your session will be locked after 35 mins.