KDE and xtrlock
We'll login ourselves once the system has loaded so we dont have to wait in every reboot for the system to load, as we're doing Post loging.
0- Set Autologin in KDE:
/etc/kde4/kdm/kdmrc
1- Create script to lock the session,once it has loaded (Post Logging):# Core config for local displays
[X-:*-Core]
AutoLoginEnable=true
AutoLoginLocked=false
AutoLoginUser=user
Settings--> AutoStart --> SctiptFile--> BeforeKdeStart-->
Script xtrlock.sh
If you want to protecet the screen form others:xtrlock &
The -c (for Command). To start xtrlock in screen blanking mode and set monitor backlight level to 20 after unlocking the screen, run:
xtrlock -c "xbacklight -set 20" -b